Use javac fork attribute with IBM JDK

Posted by avjaz on Stack Overflow See other posts from Stack Overflow or by avjaz
Published on 2010-03-25T19:19:03Z Indexed on 2010/03/25 19:23 UTC
Read the original article Hit count: 553

Filed under:
|
|

Hi -

I have a large ant build that I'm working on, that is currently running out of memory. One ways I've read that can help mitigate this problem is to use javac fork="true" to run javac in a separate jvm.

My problem is that I need to compile the project with the IBM JDK (this is not the JDK referenced by JAVA_HOME, and I would prefer it not to be). I tried setting the executable attribute of Ant's javac, to the path to IBM's javac but no joy (the project still won't compile). Ant's docs for the executable attribute state:

Complete path to the javac executable to use in case of fork="yes". Defaults to the compiler of the Java version that is currently running Ant. Ignored if fork="no". Since Ant 1.6 this attribute can also be used to specify the path to the executable when using jikes, jvc, gcj or sj.

Does anyone have any ideas?

Thanks -

© Stack Overflow or respective owner

Related posts about ant

Related posts about javac