This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi, I am new to ANT and while trying to build an application by giving the ant command in the prompt, I am getting an error stating the System is out of resources and it shows java.lang.OutOfMemoryError. Can somebody please explain me why this is happening and how to correct it?
What specific target gives you an OutOfMemoryException? Some like javac and javadoc can eat a lot of memory; you might check out the possibility of forking a new jvm for these tasks and allocating more memory to them (see the docs). You might also look out for too many <ant /> and <antcall /> tasks, both are inefficient, since they require reparsing the build file, plus creating seperate instances of Ant's ClassLoader and all Project properties.