This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT Out of Memmory problem

 
Manohar Karamballi
Ranch Hand
Posts: 227
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Manohar
 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:

java -Xmx256m -Xms32m
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic