This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc4-java: ecj1 not working
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 06 Oct 2009 05:15:36 +0100
- Subject: Re: gcc4-java: ecj1 not working
- References: <4ACAB9D5.8070106@users.sourceforge.net>
Yaakov (Cygwin/X) wrote:
> 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)
WFM:
admin@ubik /tmp/java/test
$ ls
Hello.java
admin@ubik /tmp/java/test
$ ls -la
total 5
drwxr-xr-x 1 DKAdmin None 0 Oct 6 05:09 .
drwxr-xr-x 1 DKAdmin None 4096 Oct 6 05:09 ..
-rw-r--r-- 1 DKAdmin None 134 Oct 6 05:09 Hello.java
admin@ubik /tmp/java/test
$ gcj-4 -C Hello.java
admin@ubik /tmp/java/test
$ echo $?
0
admin@ubik /tmp/java/test
$ ls -la
total 6
drwxr-xr-x 1 DKAdmin None 0 Oct 6 05:10 .
drwxr-xr-x 1 DKAdmin None 4096 Oct 6 05:09 ..
-rw-r--r-- 1 DKAdmin None 416 Oct 6 05:10 Hello.class
-rw-r--r-- 1 DKAdmin None 134 Oct 6 05:09 Hello.java
> OTOH:
>
> $ gij-4 -jar ecj-4.3.jar HelloWorld.java
Hmmmm:
$ gij-4 -jar ecj-4.3.jar HelloWorld.java
Failed to load Main-Class manifest attribute from ecj-4.3.jar
admin@ubik /tmp/java/test
$
Do we have the same latest ecj?
$ md5sum /usr/share/java/ecj-4.3.jar
fd299f26c02268878b5d6c0e86f57c43 */usr/share/java/ecj-4.3.jar
cheers,
DaveK
--
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