cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Amarjit_Jutla
Level 3

Project compile error - java.lang.OutOfMemoryError

Can anybody help with the following issue:

Compiling a IA 2014 via the ANT Task

IAlocation="C:\Program Files (x86)\InstallAnywhere 2014"
IAProjectFile="project.iap_xml"
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)
Labels (1)
0 Kudos
(1) Reply
Amarjit_Jutla
Level 3

Project compile error - java.lang.OutOfMemoryError - Solved

When the following is executed:


IAlocation="${InstallAnywhere}"
IAProjectFile="${XBSInstallerRoot}\xinst\xbsia.iap_xml"
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
0 Kudos