Question
Java classpath in Arbortext
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
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

