Netbeans: JVM creation failed

Netbeans seems to have a problem if your 64 bit system has more than 4 GB RAM. Obviously it can’t address the memory and quits with “JVM creation failed”.

The solution is very easy. Just go to the netbeans.conf file. On Linux this is typically in the /etc directory. On Windows you have a folder called etc in your application folder (should be in C:Program Files (x86)Netbeans ). Open it with your preferred editor and add -J-Xmx512m to netbeans_default_options (at line 6). It should now look like this:

netbeans_default_options=".... -J-Xmx512m"

Save and close the file and Netbeans should start again.

Original article was published on

Comments are closed.