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
- Open the launcher and check which game version the profile is set to.
- Open your mods folder (%appdata%\.minecraft\mods) and move all mods out temporarily, then launch.
- If it launches, add mods back in small batches to find the one that crashes; update or delete it.
- If mod configs are suspect, delete or rename %appdata%\.minecraft\config so the game regenerates it.
Match the Java version and Java executable path
- 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.
- In the official launcher: Installations → select your profile → More Options → Java Executable.
- Point it to the correct javaw.exe for the required Java version, or leave it empty to use the bundled runtime.
- Relaunch the game.
Read the crash report to find the exact culprit
- Exit code 1 is generic — open %appdata%\.minecraft\crash-reports and open the newest .txt file.
- Look at the 'Description' and 'Caused by' lines; they usually name the mod or file that crashed the game.
- 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
- Open Settings → Apps → Installed apps, find Minecraft Launcher → Advanced options.
- Click Repair (then Reset if Repair didn't help), then relaunch the launcher.
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.