How to Fix Minecraft Exit Code 1
Published: July 10, 2026 ยท 5 min read
Exit Code 1 is Minecraft's way of saying "something crashed the Java process before I could tell you what it was." Unlike other crash errors that produce a specific error message, Exit Code 1 is frustratingly vague. The game simply closes and reports an exit code rather than a crash report. Here is how to systematically narrow down the cause.
Step 1: Check the Latest Log File
Even when Minecraft crashes with Exit Code 1, it usually writes partial log data. Navigate to your .minecraft/logs folder and open the file named latest.log. Scroll to the very end and look for lines that say ERROR or FATAL above the last entry. This will usually reveal the specific mod or component that failed.
Step 2: Check Your Java Version
Minecraft 1.17 and above requires Java 17 or higher. If you have multiple Java installations and the wrong one is being used by your launcher, the game process can fail at startup with Exit Code 1 before any Minecraft-specific code even runs. In the Minecraft Launcher's installation settings, expand "More Options" and check the "Java Executable" field. It should point to a Java 17 or newer runtime, not Java 8.
Step 3: Test Without Mods
Create a new launcher profile with the same Minecraft and mod loader version but with no mods in the mods folder (or an empty folder). If the game launches, the problem is in one of your mods. Re-add mods in batches of five, launching each time, until the crash reappears. The last batch added will contain the culprit. Then remove mods from that batch one at a time to isolate it.
Step 4: Check for Corrupted Game Files
In the Minecraft Launcher, go to Installations, click the three dots next to your affected profile, and select "Repair Installation." This re-downloads any missing or corrupted core game files without affecting your world saves. If you are using a third-party launcher like CurseForge, there is usually a "Force Reinstall" option under each modpack's settings.
Step 5: Update or Reinstall GPU Drivers
If none of the above resolves it, an outdated GPU driver can cause OpenGL initialization to fail, killing the Java process before the game window even appears. Download the latest driver from your GPU manufacturer's website (not Windows Update) and perform a clean install. This resolves a surprising number of Exit Code 1 crashes that appear completely unrelated to graphics at first glance.