File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT Out of Memmory problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT Out of Memmory problem" Watch "ANT Out of Memmory problem" New topic

ANT Out of Memmory problem

Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
Hello All,

I am using ANT for building project. ANT performs compiling,deploying tasks in my build file.

Recently I moved my project folder to new m/c. I have to compile 2995 java classes. At this stage I am getting following error. (in javac task)

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

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

I tried to increase heap size by issuing following command from Command prompt.

java -Xmx -256m -Xms 32m

I got following error.
Invalid maximum heap size: -Xmx
Could not create the Java virtual machine.

Any help in resolving this is appreciated.

Thannks in advance
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
Try this:

java -Xmx256m -Xms32m
I agree. Here's the link:
subject: ANT Out of Memmory problem
It's not a secret anymore!