ant-user mailing list archives

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

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 http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_0.5 and 
http://help.eclipse.org/help21/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm
Essentially you need to pass a vm arg to Eclipse to make more heap 
available...something like: -vmargs -Xmx256M 

HTH
Darins





"Rodney A Singh" <rodney.singh@illuminatnm.com>
09/26/03 04:50 AM
Please respond to "Ant Users List"

 
        To:     <user@ant.apache.org>
        cc: 
        Subject:        OutOfMemoryError



Hi,
 
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)
 
process-jsps:
[mkdir] Created dir: C:\RAS\CML\Work_in_Progress\cml\build-jspc
[echo] Processing JSPs with JspC
[javac] Compiling 143 source files to 
C:\RAS\CML\Work_in_Progress\cml\build\WEB-INF\classes
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError
BUILD FAILED
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


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