Java Heap Space
I use the BlueJ editor. I'm sorry if any of you are unfamilar with BlueJ, but please try to help
I'm not sure why I have this error but now it says this:
java.lang.OutOfMemoryError: Java heap space
I looked up what the error is on the internet. I saw how to increase the heap size my changing the bluej.defs file, so I did that. It still gives me the same error and I don't know how to fix it. One source said that when you run the file, you should specify this as arguments -Xms1024m -Xmx1024m, but I'm not sure exactly how to use it because all it says is variable is that variable Xms1024m can't be found.
[638 byte] By [
LordEricOa] at [2007-11-26 14:18:42]

The error message is indicating that the application is using more memory than is allocated for the JVM. Could be that the application is very big or that a memory leak could be happening. Since I am not familiar with BlueJ, and its overheads, my approach would be to compile and run in the standard way from a command line and then see if the error appears. If so, then increase the allocated memory incrementally from the defaults by using -Xms?m -Xmx?m as arguments to the run command.-Xm32?m -Xmx128m are the defaults, then try perhaps -Xms128m -Xmx256m for starters.
I use to get this same error using BlueJ. What I did (and it worked) is I used the command prompt to locate the folder containing the program. My main class was called Driver, this command made it work perfectly:java -Xmx1024m DriverGive it a shot.