This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gcc4-java: ecj1 not working
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 05 Oct 2009 22:30:29 -0500
- Subject: gcc4-java: ecj1 not working
Dave,
With gcc4-java 4.3.4-1:
$ gcj-4 -C HelloWorld.java
Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.batch.GCCMain
at gnu.java.lang.MainThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.batch.GCCMain not found in
gnu.gcj.runtime.SystemClassLoader{urls=[],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at gnu.java.lang.MainThread.run(Unknown Source)
OTOH:
$ gij-4 -jar ecj-4.3.jar HelloWorld.java
$ gij-4 HelloWorld
Hello World!
$ gcj-4 --main=HelloWorld -o HelloWorld.exe HelloWorld.class
$ ./HelloWorld.exe
Hello World!
Something wrong with ecj1.exe?
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple