View Full Version : Project compile error - java.lang.OutOfMemoryError

Amarjit Jutla
11-20-2014, 03:41 PM
Can anybody help with the following issue:

Compiling a IA 2014 via the ANT Task
IAlocation="C:\Program Files (x86)\InstallAnywhere 2014"
failonerror="true" />

Get the following error which aborts the build.
[InstallAnywhere] Unable to invoke the method:
[InstallAnywhere] ProductInformationProperty.setPropertyValue(String)
[InstallAnywhere] Some installer configuration information may be lost
[InstallAnywhere] java.lang.OutOfMemoryError: Java heap space

Compiling same project from IA 2014 IDE is successful.

I have tried setting ANT_OPTS=-Xmx720m (i am using java 1.7.0_60-b19)

Amarjit Jutla
11-20-2014, 09:18 PM
Project compile error - java.lang.OutOfMemoryError - Solved

When the following is executed:

failonerror="true" />

It actually invokes ? C:\Program Files (x86)\InstallAnywhere 2014\build.exe
There is a properties file associated with build.exe ? C:\Program Files (x86)\InstallAnywhere 2014\build.lax

In the file: build.lax file I increased (doubled) the value of: LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX
From: lax.nl.java.option.java.heap.size.max=134217728
To: lax.nl.java.option.java.heap.size.max=268435456