FixPlay

Minecraft error code 1 (exit code 1)

✅ Verified on 2026-11-15 · Minecraft version 26.3 (2026 year-based numbering) · Platform: PC (Windows, Java Edition)

Quick fix

Exit code 1 is almost always an incompatible mod or the wrong Java version — clear the mods folder, then make sure Java matches your Minecraft release (Java 21 for 1.20.5+).

Symptoms

The Minecraft launcher starts the game, then immediately closes it and shows 'Exit Code: 1' or an unnamed crash. The error is generic — the launcher almost never names the real cause.

Fixes that work

Remove or update incompatible mods

  1. Open the launcher and check which game version the profile is set to.
  2. Open your mods folder (%appdata%\.minecraft\mods) and move all mods out temporarily, then launch.
  3. If it launches, add mods back in small batches to find the one that crashes; update or delete it.
  4. If mod configs are suspect, delete or rename %appdata%\.minecraft\config so the game regenerates it.

Source: https://www.reddit.com/r/MinecraftHelp/comments/1xgq5bd/want_to_play_minecraft_keeps_crashing_and_i_get

Match the Java version and Java executable path

  1. Minecraft 1.20.5+ needs Java 21; 1.18–1.20.4 needs Java 17+; older versions use Java 8. Remove old conflicting Java installs first.
  2. In the official launcher: Installations → select your profile → More Options → Java Executable.
  3. Point it to the correct javaw.exe for the required Java version, or leave it empty to use the bundled runtime.
  4. Relaunch the game.

Source: https://support.curseforge.com/support/solutions/articles/9000233370-minecraft-modpacks-launcher-in-game-issues

Read the crash report to find the exact culprit

  1. Exit code 1 is generic — open %appdata%\.minecraft\crash-reports and open the newest .txt file.
  2. Look at the 'Description' and 'Caused by' lines; they usually name the mod or file that crashed the game.
  3. Update or remove exactly what is named, then relaunch.

Source: https://server.nitrado.net/en-US/guides/how-to-fix-minecraft-crash-exit-code-1

Repair the launcher installation

  1. Open Settings → Apps → Installed apps, find Minecraft Launcher → Advanced options.
  2. Click Repair (then Reset if Repair didn't help), then relaunch the launcher.

Source: https://help.minecraft.net/hc/en-us/articles/23430310790413-Fix-Minecraft-Launcher-Crashes-and-Freezes-on-Windows-PC

Frequently asked questions

What does error code 1 mean in Minecraft Java?

It's a generic 'the game crashed' signal, not a specific bug. The real cause is in the crash report — most often an incompatible mod or the wrong Java version.

Can I get exit code 1 without mods?

Yes — wrong Java version, a corrupted profile/installation, or outdated GPU drivers can also cause it. Repair the launcher and update graphics drivers before reinstalling.