I am writing a client-side Swing application (graphical font designer) on Java 5. Recently, I am running into java.lang.OutOfMemoryEr
java.lang.OutOfMemoryEr
Run Java with the command-line option -Xmx, which sets the maximum size of the heap.
-Xmx
See here for details.