ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhaval Chokshi" <>
Subject Re: Out Of Memory Error ::
Date Tue, 02 Sep 2003 04:59:02 GMT

For the out of memory kind of error. May be you need some more memory than you are currently
using. So, edit your ant.bat file in the ANT_HOME/bin directory and add one ANT_OPTS in the
:runAnt label as below.

set ANT_OPTS=-Xmx200M
rem echo %ANT_OPTS%

Increase the memory 200M as per your need or availability. And this may solve your problem.

Dhaval Chokshi
Jr. Software Engineer
Elitecore Technologies Ltd.

Work as if you were to die tomorrow. Learn as if you were to live forever.
-- Mahatma Gandhi

----- Original Message ----- 
From: "Manav Ahuja" <>
To: "Ant Users List" <>
Sent: Monday, September 01, 2003 1:30 PM
Subject: Out Of Memory Error ::

hi ,
  I have an xml file which does 
1. Get the latest from VSS
2. Compile all the 650 java files
3. Create the RMI to some 15 of them
4. Call external bat file to create the Jars ( 11 in number ).
5. Change the Flag in two java files( for the debug version).
6. Create a new directory to place all the class files there.
  All the 1-6 are happening successfully.
But now i need to compile ( Step 7 ) all the 650 java files again with
the changed flag but it is throwing the below error

[javac] The system is out of resources.
[javac] Consult the following stack trace for details.

[javac] java.lang.OutOfMemoryError
[javac]     <<no stack trace available>>

Can anybody say why it is happening...because after this 7 step  i have
8. Call another bat file  to create the debug jar
9. Get a new folder from the VSS.
10. Copy the files from this new folder to another folder.

But if i omit the 7,8 step then every thing is going on 100%.

 So Any lights...or work arounds..

Thanks & Regards,
Manav Ahuja
Wipro Technologies,
Tel : 91-80-8520408 xtn 1153

To unsubscribe, e-mail:
For additional commands, e-mail:

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