[ecj] Error compiling executable on i686-pc-linux-gnu

Tom Tromey tromey@redhat.com
Wed Dec 6 06:12:00 GMT 2006


>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:

Mohan> I tried to build a Linux gcj and then do:
Mohan> gcj --main=HelloJ5 -o HelloJ5 HelloJ5.java
Mohan> A .class file gets generated in the current directory
Mohan> (and this runs okay with gij), but instead of getting
Mohan> an executable, I get:

Mohan> /tmp/ccmCwrnA.jar:0: error: malformed .zip archive in CLASSPATH: /tmp/ccip4wgn.zip/

Mohan> I'm not seeing either the .jar or .zip in /tmp.

Mohan> Any ideas?

Try with -save-temps.  gcj now creates a temporary .jar and temporary
.zip file to hold intermediate .class results.

Tom



More information about the Java mailing list