-
Ant javac out of memory (4 messages)
- Posted by: Rohan Walia
- Posted on: February 11 2009 23:49 EST
Hi I have created a ant script which compiles all java files of my project to a destination folder. The number of files are large so i get OutOfMemoryException. I have also tried giving memory arguments. Here's my build compile task:- After this also it gives me same exception. Please help me in this. Thanks in advcance.Threaded Messages (4)
- Re: Ant javac out of memory by Rohan Walia on February 12 2009 06:19 EST
- Ant OutofMemory by Tribikram Sahoo on February 18 2009 01:53 EST
- Re: Ant OutofMemory by Rohan Walia on February 24 2009 00:03 EST
- javac Ant Task out of memory Exception by vamshi d on March 19 2010 10:17 EDT
- Re: Ant OutofMemory by Rohan Walia on February 24 2009 00:03 EST
-
Re: Ant javac out of memory[ Go to top ]
- Posted by: Rohan Walia
- Posted on: February 12 2009 06:19 EST
- in response to Rohan Walia
Hi all, Please help me in this. Thanks very much -
Ant OutofMemory[ Go to top ]
- Posted by: Tribikram Sahoo
- Posted on: February 18 2009 01:53 EST
- in response to Rohan Walia
Try out the options and arguments at the following thread. http://markmail.org/message/2onalqea6qphphn6#query:specifying%20memory%20for%20javac+page:1+mid:nyswxs3unebudsia+state:results 1. Try changing forking to true/false 2. Try changing JDK Version -
Re: Ant OutofMemory[ Go to top ]
- Posted by: Rohan Walia
- Posted on: February 24 2009 00:03 EST
- in response to Tribikram Sahoo
Thanks very much for the reply. I have also trid setting ANT_OPTS variable to 1024m . But still my application runs out of memory. Please help me. My ant script is failing and i am not able to build the project because of this Out Of Memory exception. I am running on WIN-XP having 2 GB RAM Thanks very much. -
javac Ant Task out of memory Exception[ Go to top ]
- Posted by: vamshi d
- Posted on: March 19 2010 10:17 EDT
- in response to Rohan Walia
Specify the Initial Memory Size also .
srcdir="src"
destdir="build/classes"
classpathref="classpath" memoryInitialSize="1024m"/
memoryMaximumSize="1024m"/>
Also you can check what point your ant task is failing by specifying -v option for the ant task ( Example ant -v -f build.xml bundle.release)