GCC 4.0 RC1 Available
Mark Wielaard
mark@klomp.org
Tue Apr 12 18:15:00 GMT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20050412/ad46f373/attachment.sig>
More information about the Java
mailing list