gcj fails to compile java

Jack Howarth howarth@bromo.med.uc.edu
Sat Sep 25 20:56:00 GMT 2010


  I've filed PR45773 concerning the new regression in gcj where java classes can
no longer be compiled with ecj.jar. Since r163770 (with r163814 backported to fix
the libjava build), any attempt to compile a java source file with gcj produces
the error...

gcj --main=testme -O testme.java
Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(libgcj.12.dylib)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/sw/share/java/ecj/ecj.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.12.dylib)
   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
   at java.lang.ClassLoader.loadClass(libgcj.12.dylib)
   at gnu.java.lang.MainThread.run(libgcj.12.dylib)

This problem does not exist at r163768. I am reposting this problem since the new
bugzilla keeps reporting...

GCC Bugzilla has suffered an internal error. Please save this page and send it to dberlin@gcc.gnu.org with details of what you were doing at the time this message appeared.

URL: file:///Users/howarth/Internal Error.html

There was an error sending mail from '"howarth at nitro dot med.uc.edu" <gcc-bugzilla@gcc.gnu.org>' to 'java-prs@gcc.gnu.org':Can't send data

whenever I add new information and nothing appears in the gcc-bugs archives from those sessions
(although the PR itself if updated).
            Jack



More information about the Gcc mailing list