ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <>
Subject Re: OutOfMemoryError
Date Fri, 26 Sep 2003 15:42:21 GMT

You need to increase the Java heap size for running Eclipse..
Likely you are running Ant in the same VM as Eclipse (in Eclipse M3 and 
newer you can specify to run Ant in a separate VM).

See and
Essentially you need to pass a vm arg to Eclipse to make more heap 
available...something like: -vmargs -Xmx256M 


"Rodney A Singh" <>
09/26/03 04:50 AM
Please respond to "Ant Users List"

        To:     <>
        Subject:        OutOfMemoryError

I'm building an application using Ant ver1.5.4. However, when I get the 
following error while compiling the .JSP files: (J2SDK 1.4.2; Ant 1.5.4)
(Output in Eclipse ver3 milestone 2)
[mkdir] Created dir: C:\RAS\CML\Work_in_Progress\cml\build-jspc
[echo] Processing JSPs with JspC
[javac] Compiling 143 source files to 
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError
file:C:/RAS/CML/Work_in_Progress/cml/build.xml:599: Compile failed; see the compiler error
output for details.
Total time: 5 minutes 3 seconds
It should be noted that when I reduce the number of such files it works, 
regardless of which files I remove (that is, the actual files don't seem 
to matter - just the number of such files). I have 160 .JSP files and only 
139 will compile.
Can anyone out there help me??
PS: I'm new wrt Ant and the mailing list ..
Rodney, Trinidad & Tobago.

  IncrediMail - Email has finally evolved - Click Here

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message