The Java virtual machine fatal exception error pops up for some users when they try to launch software built on Java. Minecraft users are no strangers to this issue.

Don’t hesitate to take a closer look at our quick solutions

  • You should run the software as an administrator as the lack of rights can trigger the error.

  • If you’re still experiencing this problem, it all comes down to reinstalling Java from scratch.

  • Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).

  • Click Start Scan to find Windows issues that could be causing PC problems.

  • Click Repair All to fix issues affecting your computer’s security and performance

  • Restoro has been downloaded by 0 readers this month.

The full error message states: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Consequently, the Java program doesn’t run, yet we will share some simple fixes.

Why am I getting Could not create Java Virtual Machine?

The following are some of the possible causes that you should pay attention to:

  • Memory size issues – The Java Virtual Machine error often arises when Java needs a larger global maximum heap memory size. The problem was resolved by users increasing the maximum RAM allotted to Java.
  • Incorrect path settings – In this case, you just need to set or modify your path, as described below.
  • Corrupted files – Such files may contribute to this error, so note that a reinstallation of Java should fix this. This applies to those encountering Windows error 2 while loading the Java VM error message as well.

Do I need to install JVM?

Any machine on which you want to run Java code must have the Java Runtime Environment (JRE) installed. This is because Java does not run natively on a computer as C++ or C does; instead, someone must translate Java’s instructions into machine code, which the JVM does.

This error may come in different shades including Could not create the Java Virtual Machine in Android Studio, Docker, Pentaho, Elasticsearch, Sonarqube, Minecraft, Eclipse, React Native, and IntelliJ yet rest assured that you’ll find our solutions useful.

How do I fix Could not create the Java Virtual Machine error?

1. Set up a new system variable for Java

  • Open Run with the Windows key + R keyboard shortcut, then enter sysdm.cpl in Run and click OK.
  • Select the Advanced tab on that window, and click the Environment Variables button.
  • Click the New button under the System variables box.
  • Enter _JAVA_OPTIONS in the Variable name text box.
  • Then, 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 window.

Importantly, note that instead of using a double hyphen in the Variable value as stated above, you can use a single hyphen (-Xmx512M) as this is often more effective, and would not spark up other complications.

  • Why am I getting Could not create Java Virtual Machine?
  • How do I fix Could not create the Java Virtual Machine error?
    1. Set up a new system variable for Java
    1. Select the Run as administrator option for Java
    1. Reinstall Java

2. Select the Run as administrator option for Java

The Java Virtual Machine error can also be due to insufficient admin rights. Thus, some users might need to assign admin rights to Java. You can try the steps below to apply this solution. 

  1. Press the Windows key + S keyboard shortcut, and enter Java. Right-click on Java and select Open file location to open Java’s folder in File Explorer.

Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.Click here to download and start repairing.

Expert tip:

SPONSORED

  1. Right-click java.exe and select Properties.

  2. Select the Compatibility tab and select the Run this program as an administrator option.

  3. Select the Apply option, and click OK to close the window.

3. Reinstall Java

  • First, open the Run accessory by pressing the Windows key + R.
  • Type the command below and hit Enter. appwiz.cpl
  • Select Java from the program list and click Uninstall.
  • Click Yes on any confirmation window that opens.
  • Restart Windows, open the Java download page in a browser, and download either the 32 or 64-bit offline Windows versions.
  • Users need 32-bit Java for 32-bit programs and 64-bit Java for 64-bit software. If in doubt, your best bet is to download and install both Java versions.
  • Thereafter, open the Java setup wizard, and click the Install button on the setup wizard.

That’s how users can fix this fatal error and get back to running the required Java software.

  • How to fix Windows error 2 while loading the Java VM
  • Fit the Runtime error Java in just a few easy steps
  • How to download Java 10 on your Windows PC

Any of the previously mentioned solutions may be successfully applied when getting a Java virtual machine launcher error which arises even if nothing has changed on your computer, and it’s most likely related to Java installation.

Things are no different when it comes to the Could not create the Java virtual machine a fatal exception has occurred error. This problem also seems to appear randomly. Make sure you aren’t using a 32-bit VM and a 64-bit Eclipse.

Minecraft could not create the Java virtual machine is an error that shows up when trying to launch Minecraft. The main reason is that it needs admin access in order to function properly.

If you have any other questions or if you have advice for other users to try, don’t hesitate to leave a comment below.

  • JavaMinecraft Issues

Email *

Commenting as . Not you?

Comment