The append_javaclass_path ACL function allows you to prepend a
directory/JAR to the class path. Making appropriate calls to this function
from an ACL file in the "init" directory under your custom directory may
get you the results you want.
-Brandon 🙂
On Sat, Oct 27, 2012 at 2:08 PM, Steven Anderson
<sanderson@salesforce.com>wrote:
> I’m hitting an issue that I think comes from a classpath issue in
> Arbortext. I’ve added to my Java code the following:****
>
> ** **
>
> ClassLoader cl = ClassLoader.*getSystemClassLoader*(); ****
>
> URL[] urls = ((URLClassLoader)cl).getURLs();****
>
> *for*(URL url: urls){****
>
> System.*out*.println(url.getFile());****
>
> }****
>
> ** **
>
> And I’m getting local environment (not Arbortext default) classes at the
> beginning of the list and at the end of the list.****
>
> ** **
>
> The jar files at the end of the list are from the APTCLASSPATH, but the
> ones in the beginning are not. They are also not in my classpath.****
>
> ** **
>
> I actually want my libraries to load first, before the Arbortext
> libraries, but it appears APTCLASSPATH adds them to the end.****
>
> ** **
>
> So my questions are:****
>
> ** **
>
> **1. **Is there a way to add my libraries to the start of the
> classpath?****
>
> **2. **Are there other ways to specify classpaths for Arbortext?****
>
> Thanks,****
>
> ** **
>
> Steve****
>