This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]