Skip to content
CP-050Game ErrorsMedium

Minecraft 'Java Virtual Machine Launcher' Error Fix

Estimated time: ~8 min5 stepsLast verified:

Independent guide — no official affiliation with the platforms mentioned.

Short answer

Minecraft's 'Java Virtual Machine Launcher — Error: Could not create the Java Virtual Machine' error comes from the wrong Java version, mis-sized JVM memory allocation or a broken launcher configuration. The fix: install the correct 64-bit Java, size the -Xmx memory flag to your RAM, and let the launcher use its bundled Java.

Official source

java.com

Java resmî indirme sayfası

64 bit Java 17/21 kurulumu için resmî kaynak; Minecraft 1.20+ sürümleri Java 17+ ister.

01 — Step-by-step fix

Step-by-step fix

  1. STEP 01

    Install the correct Java version

    Minecraft 1.17+ requires 64-bit Java 17; 1.20.5+ requires Java 21. Install the right 64-bit JDK/JRE from java.com or Adoptium. 32-bit Java with large memory flags is the classic cause of the JVM not starting.

  2. STEP 02

    Fix the -Xmx memory flag

    In the launcher: Installations > your version > More options and check -Xmx. On an 8 GB machine -Xmx4G is reasonable; -Xmx8G and above leaves nothing for Windows and the JVM fails. Rule: never give more than half your RAM.

  3. STEP 03

    Use the launcher's bundled Java

    In the Minecraft Launcher, under Installations > version > More options, leave the Java executable path empty — the launcher downloads its own verified Java. For modded installs (Forge/Fabric), pick a profile matching the mod's required Java version.

  4. STEP 04

    Register Java in PATH and remove conflicts

    With multiple Java versions installed, set JAVA_HOME to the correct JDK path in Settings > About > Advanced system settings > Environment Variables. Uninstall old 32-bit Java.

  5. STEP 05

    Clean broken configs and mods

    Under %appdata%\.minecraft, back up and delete suspicious configs except launcher_log.txt and options.txt. In modded setups, empty the mods folder and add mods back one by one until the JVM error returns; a bad mod drops the JVM directly.

Tips

  • After a RAM upgrade, the old -Xmx value may no longer fit — re-measure it in the launcher.
  • Keeping a separate 'mod test' profile is the fastest way to isolate JVM errors from your main setup.
  • On low-RAM machines, Optifine/Sodium with -Xmx2G may be enough; optimize with mods instead of raising memory.

02 — Frequently asked questions

Frequently asked questions

What does 'Error occurred during initialization of VM' mean?

The JVM failed to apply its memory/parameter settings at startup. Most often -Xmx exceeds system RAM or a 32-bit Java is asked for a large heap. Shrink the flag and install 64-bit Java.

Which Java for modded Minecraft?

Match the mod loader: Java 17 for 1.18-1.20.4, Java 21 for 1.20.5+. Mod pages usually state the required version. A mod can work on Java 17 but crash on Java 21 — check for updates.

Can the JVM error be virus-related?

Rarely. Malware masked as java.exe can produce JVM errors. In Task Manager, check whether java.exe runs from C:\Program Files\Java; if not, run a full scan and reinstall Minecraft from official sources.

Did this guide solve it?

Your feedback improves our guides — it takes 10 seconds.

Links in this guide point to official platform pages. Steps may change with platform updates; check the page date.

03 — Related guides

Game Errors