Hi,
I not whether this is the sort of question to be asked on StackOverflow, but I'll ask it anyway.
I am using GCJ (as part of MinGW) on Windows XP SP3 to compile a Java class to an EXE.
The Java Class is:
public class Test
{
public static void main(String args[])
{
System.out.println("This is a test.");
}
}
Now when I run GCJ with the Java source file, it fails with:
C:\MinGW\bin>gcj --main=Test Test.java Test.java:0: error: malformed .zip archive in CLASSPATH: C:\Program Files\Java\jdk1.6.0_13\lib\tools.jar/ jc1.exe: out of memory allocating 1342179073 bytes
I then compiled the Java class and run GCJ again, but once again it failed with:
C:\MinGW\bin>gcj --main=Test Test.class jc1.exe: out of memory allocating 1342179073 bytes
Why is it doing this and what can I do to make GCJ work?