Error message when I am running Netbeans 7.

Asked By 10 points N/A Posted on -
qa-featured

Hi all.

This morning, I’ve found an error message when I am running Netbeans 7 in my Windows PC and unable to find the past splash display. So I need to try this command line.

netbeans.exe -J-Xmx512m

Guys, can you give me suggestion or possible solution for this? Any suggestions would be greatly appreciated.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error:

JVM creation failed

 

SHARE
Best Answer by hamdi nizar
Best Answer
Best Answer
Answered By 0 points N/A #144641

Error message when I am running Netbeans 7.

qa-featured

Hi michael ;

I want to show you how to fix the "JVM creation failed" problem in your NetBeans programs.

 1. First go to the directory where netbeans is installed ( C:/program files/NetBeans 7.0)..

 2. Then open the net beans folder..

  3. Go to the “etc” folder (C:/program files/NetBeans 7.0/etc)…

 

….here you will see a “netbeans.conf” file..

 

 

   4. Now open this file in a notepad bloc-notes…

 

  5. Go to the notepad file and use (ctrl + f) then  a window was appear like in the  figure :

Click “Haut” (or “up”) Direction button then tape “384m” in the  “rechercher”  ( or “find what”) box.  Click “suivant” ( or “ find next”) button… you find the “384m” notice …

  6. Now change the “384m”  notice to “200m” ..

7¾   When you close the notepad file  you must save..  click “oui” (or “yes”)  button ..

Now run your NoteBeans ….

Enjoy.

Answered By 70 points N/A #144642

Error message when I am running Netbeans 7.

qa-featured

Working with NetBeans on a Windows XP/Vista this is a common error. It’s solution is simple. Just add an extra option in the configuration file and see your problem has gone.

To fix this error go to NetBeans configuration file under: C:Program FilesNetBeansetc
Open "netbeans.conf" into Notepad.

Orginal configuration row is:

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"

Now simply add this extra parameter to the above row:

-J-XX:MaxPermSize=128m

MaxPermSize is connected to the Permanent Generation. In Java, Permanent Generation has the Class Object. Netbenas is developed in Java and at startup generates Class dynamically. So, when the default size of Permanent Generation becomes too small that time this error appears. To solve this issue just adjust the size of the MaxPermSize.

After adding the extra parameter finally the row will be 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"

Now restart the NetBeans.

 

Login/Register to Answer

Related Questions