Hi,
On Mon, 2005-04-11 at 15:33 -0700, Per Bothner wrote:
> Printing getClass().getClassLoader() yields:
> gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>
> Note the urls=[file:./]. Looks like it's ignoring the CLASSPATH
> environment option.
I tried to replicate this issue with some simple example, but all my
tries just work as expected. Could you give some information about your
system? How can I replicate this? (what do I download, how do I
compile/run it) What does the following program output for you?
public class CL
{
public static void main(String[] args) throws Exception
{
System.out.println(ClassLoader.getSystemClassLoader());
}
}
$ gcj -C CL.java
$ CLASSPATH=.:/:/usr:/random gij CL
gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/,file:/usr/],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
So on my system (Debian GNU/Linux testing/x86) setting CLASSPATH seems
to work as expected. (Note that /random gets dropped since it doesn't
exist.)
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part
