This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic
Author

java.lang.OutOfMemoryError

Sharad Mittal
Greenhorn

Joined: Apr 08, 2004
Posts: 5
I build a project with Ant in Eclipse, I get java.lang.OutOfMemoryError.
Now, to solve it i need to increase the size of heap of JVM.
Can anyone know that how can i do that in Eclipse ???
Dave Hewy
Ranch Hand

Joined: Aug 21, 2003
Posts: 93
You can use these switches when calling Eclipse...
-vmargs -Xmx256M
.. to increase heap to 256Mb
There's some stuff in the help about this, search for vmargs.
HTH
Dave
Sharad Mittal
Greenhorn

Joined: Apr 08, 2004
Posts: 5
Thanx Dave,
It Worked.
 
wood burning stoves
 
subject: java.lang.OutOfMemoryError