Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JVM Creation Failed Message when opening netbeans

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

like image 959
Chinthaka Manathunga Avatar asked Jan 15 '23 05:01

Chinthaka Manathunga


1 Answers

  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.
like image 116
Rahul Dadhich Avatar answered Jan 21 '23 08:01

Rahul Dadhich