error: could not create the java virtual machine a fatal exception has occurred program will exit

Could not create the Java Virtual Machine Error A Fatal exception has  occurred

 

Actually I'm facing this error while launching netbeans IDE. when I try to start NETBEANS this error occured on  my screen. 

error: could not create the java virtual machine a fatal exception has occurred program will exit on windows 10 

Solution:

Step 1: Check JAVA is Properly Install

Open CMD and Type java -version.

C:\Users\p14pravin>java -version                   
java version "1.7.0_80"                                   

Java(TM) SE Runtime Environment (build 1.7.0_80-b15)                  

Java HotSpot(TM) Client VM (build 24.80-b11, mixed mode, sharing)

 

Step 2:

Now, to resolve the error message we need to increase the size that Java can use for memory. Here is how that is done (demonstrated using Windows 7, may differ slightly on other versions of Windows):

 

  1. Tap on Windows-Pause to open the System Control Panel applet. You can alternatively open the control panel manual to go there if you prefer it that way.

  2. Click on advanced system settings on the left.

  3. Select environmental variables here.

  4. Click on new under System Variables.

  5. Enter _JAVA_OPTIONS as the variable name.

  6. Enter -Xmx256M as the variable value.

  7. Click ok twice.

  1.  

     

The setting is available right away, you do not need to restart the computer first. It raises the allowed memory to 256 Megabyte.  If your application does not run fine afterwards, try raising the memory to 512 or even 1024 Megabyte instead.

 

Don't Forgot to comment below if your issue is resolved.

Thanks




Post a Comment

Previous Post Next Post