Increasing Heap Size While Building With Ant
Things are easy to manage memory while building applications using java.exe.
But while using ant for building big codes, we need to set the memory limit using a parameter ANT_OPTS
just set the above thing in environment variables and give the size as the value in the following fashion to get things going.
-Xmx<size>m
eg. set ANT_OPTS =-Xmx512m
in unix – setenv ANT_OPTS -Xmx768m
Abhihome said,
March 16, 2012 at 2:51 pm
This is the solution 99% of the time. But mine was fixed by a re-installation of Java!