Mark Wielaard wrote:

On Tue, 2005-04-12 at 11:23 -0700, Per Bothner wrote:


Try compiling to native:

$ gcj -o CL CL.java --main=CL
$ CLASSPATH=.:/:/usr:/random ./CL
gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}



Aha. Thanks. As a workaround you can use the GCJ_PROPERTIES environment variable for now:

GCJ_PROPERTIES='java.class.path=../..' ./CL
gnu.gcj.runtime.SystemClassLoader{urls=[file:../../],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}

I am looking for a real solution.



It looks like this was caused by this patch:

2005-04-01  Thomas Fitzsimmons  <[EMAIL PROTECTED]>

   PR libgcj/20090, PR libgcj/20526
   * gij.cc (nonstandard_opts_help): New function.
   (add_option): New function.
   (main): Support java options.  Set java.class.path.  Don't set
   _Jv_Jar_Class_Path.
...


Tom is working on a solution.

Regards

Bryce



Reply via email to