How to solve the JVM creation failed error when starting Netbeans

For those working with NetBeans on a Windows ( for sure XP and Vista ) machine this error is well known.

Do not worry, fix is very simple, just add an extra option in the configuration file.

You can find netbeans.conf under

C:\Program Files\NetBeans\etc

This is the original conf row

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"

Simply add this extra parameter to the above row

-J-XX:MaxPermSize=128m 

Finally the row looks like

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=128m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"

Restart NetBeans and enjoy coding.

Tags:

Comments

Thanks, you really solve the problem

Thanks for help! I tried many others ways, but only this worked for me!

Thank you for your help.

great man, thanks a lot....

thanks a lot this worked for me ;-)

You absolutely rock!

Thanks!
Work perfectly

Phew, it finally works. Thanks so much !
Cheers !

Thanks!

I have spend literally weeks trying to fix my NetBeans 7.1, I had gone through so many "official" NetBeans forums searching for an answer. And finally I reach this page and fix it. THANK YOU!

it really helped

thanks

Add new comment