The Java
Virtual Machine fatal exception error pops up for some users when they try to
launch software built on Java or when they try to install Java.
Most of the time you can fix this problem by uninstalling the Java
runtime and then reinstalling it all over again. You can also try increasing
the amount of system memory allocated to the Java virtual machine by setting an
environment variable.Create a New System Variable for Java
The Java Virtual Machine error often arises when Java needs a larger global maximum heap memory size. You can fix this issue by expanding the maximum RAM allocated to Java. You can do that by creating a new Java System Variable as follows.
- Open Run with the Windows key + R keyboard shortcut.
- Enter ‘sysdm.cpl’ in Run and click OK to open the window and go to Advanced Tab.
- Click the Environment Variables button to open the window below.
- Click the New button under the System variables box.
- Enter ‘_JAVA_OPTIONS’ in the Variable name text box.
- Enter ‘–Xmx512M’ in the Variable value text box, which increases RAM allocation to 512 megabytes.
- Click the OK button to close the window.
- Then press the OK button on the Environmental windows.
- Restart Your computer and reinstall java if it doesn't work