JVM Creation Failed Message when opening netbeans

Chinthaka Manathunga picture Chinthaka Manathunga · Feb 15, 2013 · Viewed 10.2k times · Source

My Netbeans works perfectly until today. But today morning when try to open net beans it gives the JVM creation failed message.

Answer

Rahul Dadhich picture Rahul Dadhich · Jul 10, 2013
  1. Open netbeans.conf file under C:\Program Files\NetBeans\etc

  2. Find this 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"

  1. And replace with this: added XX:MaxPermSize=128m

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"

  1. Restart NetBeans.