Java Heap Space, trying to configure flash develop [SOLVED]


(John Andersson) #1

Okay, so I made a new level and added it to the game (I have around 11 levels now in total). I googled and googled and found out you can increase the heap space.

Under flash develop, I have flex 4.6.0, air 3.1 set on the SDK.

I opened the JVM.config file in

Local\FlashDevelop\Apps\flexsdk\4.6.0\bin

and see

java.args=-Xmx384m -Dsun.io.useCanonCaches=false

I tried changing Xmx384m and even the -dsun command, but it doesn’t work. I only get

Error: Java heap space
Build halted with errors (fcsh).

No other errors. This is pissing me off! Thanks

EDIT: Changing to Xmx1024m worked.


(Darrin) #2

No idea on this one. but it does seem strange that you are having a java problem. That doesn’t seem to have to do with flashpunk at all. If you remove the level, does the problem go away? Did you reinstall FlashDevelop and Java?


(Jacob Albano) #3

The Flex compiler is written in Java, or something like that. This is a pretty common error but I’ve never had it myself so I can never help out unfortunately. There have been multiple threads on this forum about the issue that might be useful, though.