More memory

this has nothing really to do with Java3D but I constantly get the error: java.lang.OutOfMemoryError

so my question is, how do I give Java more memory ? I use eclipse for development so if someone could help me it would be great!

there is a commandline option for the JVM e.g.

-Xmx256m

Dunno how to set it for Eclipse (please ask for NetBeans!) but I’d look for JVM options somewhere.

I’m sure someone here knows by heart?

In the run dialog there is an arguments tab. In this tab is a section for VM arguments. Add -Xmx256m there.

The Monkey has it.

Additional note - I’ve not found a way to set an argument to be used for all launch configurations defined in a single project, so you need to add the flag to every one you have.