Cannot compile under Windows XP - OutOfMemoryError

I have downloaded Jnode from CVS to c:\jnode and try to "ant cd-x86".

It fails with the following:

[jnode.compile] Compiling 5321 source files to C:\jnode\core\build\classes

[jnode.compile] The system is out of resources.
[jnode.compile] Consult the following stack trace for details.
[jnode.compile] java.lang.OutOfMemoryError: Java heap space

C:\jnode\all\build.xml:152: The following error occurred while executing this line:
C:\jnode\all\lib\jnode.xml:62: The following error occurred while executing this line:
C:\jnode\core\build.xml:103: Compile failed; see the compiler error output for details.

The system has 1Gb RAM with 1.5 Gb swap space, so this is most likely a compiler issue (extra heap?). This is with Sun Java 1.6 beta (rc-b68). The line in question is a tag.

Please advise

Still failing

I have used the 1.6 jdk. It is still failing.I have followed Peter's suggestion too. Any help will be appreciated.

Nobody gets to live life backward. Look ahead, that is where your future lies.

Use build scripts

Hallo ravn,

Please use one of the build scripts ( to compile JNode, they'll set the maximum heap size of the VM, to compile correctly.

Also only use "cd-x86" target if you want both, 32bit and 64bit support. There is a target "cd-x86-lite" for 32bit support only too.


Sigh. For some reason I

Sigh. For some reason I read somewhere to build I needed to use the build.xml in all/. Building now, looks much better.

Thanks for helping me to read Smiling
Thorbjørn Ravn Andersen " Bells!"

hi,zou wrote in ur first

you wrote in your first statement, that you have used the 1.6 jdk, does it now compile correctly?
i tried it some weeks ago and it fails for me.