Because of this:
Ulf Dittmer wrote:... who knows what that does to the memory settings.
IDEs are memory hogs; Eclipse probably needs 256MB or more just for itself.
For running the code in Eclipse; dig into the Eclipse settings to find out where you can set the JVM parameters for child processes - giving those 1 GB is unlikely to be the default, so as long as you don't change those values you'll run into trouble.