Minecraft crash with "exit code 1": how to find the cause and fix it

Exit code 1 only tells you the Minecraft process ended abnormally. It does not name the cause. Start with the log files, then check the Java version and test without mods.

Applies to:Minecraft: Java EditionMostly Windows, with or without mods (Forge, Fabric, NeoForge)
On this page

What it means

"Exit code: 1" is the generic status a Java program returns when it stops because something went wrong. The launcher (the official one, or Prism, CurseForge and similar) just reports that the game process died. It does not say why, and there is no single documented fix for this message.

The reason is written to the game's log files, so that is where to start. Typical suspects are a Java version that does not match the game, a mod problem, or too little memory. If you use Forge and see this exact wording, there is a more specific article: Minecraft Forge "Game crashed, Exit code: 1". A shorter overview of the same message is in Minecraft "Exit code: 1".

A note on sources: this article relies on the community Minecraft Wiki and one third-party troubleshooting guide. The official help.minecraft.net pages on crashes and launcher problems could not be opened while it was written, so nothing here has been checked against them.

Symptoms and causes

You are likely dealing with this problem if:

  • The launcher shows "Game crashed" with exit code 1 right after you press Play.
  • The game window never opens, or closes almost immediately.
  • The crash started after you added a mod or modpack, or changed Java or drivers.

The usual causes, most common first:

Wrong or broken Java
The Java version does not match the game version, the Java path set in the launcher is invalid, or the Java install is damaged. The Minecraft Wiki lists a wrong Java version as a common startup crash.
Mod problems
Mods built for another game version, conflicting mods, missing dependencies (for example Fabric API), or a broken Forge or Fabric install.
Not enough memory
Too little RAM allocated to the game (for example 2 GB for a large modpack), or the computer itself is running out of RAM.
Corrupt game or launcher files
Damaged files in the game folder can make the process exit at startup.
Special characters in the Windows user name
They can stop the launcher from finding the game directory.

How to fix it

Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.

1.Read the log and crash report

Easy

Exit code 1 has no single meaning. The log usually names the real cause, which saves you from guessing.

  1. Press WinR, type the path below and press Enter.
    Text
    %appdata%\.minecraft\logs
  2. Open latest.log in Notepad and search for ERROR and Exception. The first error near the end of the file is usually the one that matters.
  3. Also look in the crash-reports folder inside .minecraft for the newest file. A file named hs_err_pid followed by a number in .minecraft means the Java process itself crashed.
  4. Match what you find to the fixes below: a Java version message to the Java fix, a mod name to the mod fix.

2.Match Java to the game version

Easy

A Java runtime that is too old or too new for the game version is a startup crash the Minecraft Wiki names explicitly.

  1. Check the minimum Java for your game version (community-maintained table): 1.12 to 1.16.5 needs Java 8, 1.17 needs Java 16, 1.18 to 1.20.4 needs Java 17, 1.20.5 to 1.21.11 needs Java 21, and 26.1 and later needs Java 25. The launcher only accepts a custom Java whose major version matches the game's minimum.
  2. If you must use your own Java, uninstall the old one and do a clean install of the correct version rather than editing paths by hand.
  3. Special case, game versions up to 1.16.5 only: if you have Intel HD 2xxx or 3xxx graphics on Windows 10, the Minecraft Wiki says newer Java can break that buggy graphics driver, and Java 8 is the workaround. Newer game versions cannot run on Java 8, so do not use this on them.
  4. Launch the game again.

3.Test without mods, then add them back

Easy

If the game starts without mods, the crash is caused by a mod, a missing dependency or the mod loader.

  1. Launch a vanilla profile with no mods. If you use a modded launcher, move the contents of the mods folder to another folder temporarily.
  2. If the game starts, put mods back a few at a time and launch after each batch to find the one that breaks it.
  3. For each mod, check that it and the loader (Forge, Fabric or NeoForge) are built for your exact game version.
  4. Install every dependency a mod lists as required, for example Fabric API for many Fabric mods.

4.Reinstall Minecraft as a last resort

ModerateBack up first

This clears out corrupt game files when nothing else has helped.

Before you start: Deleting the .minecraft folder removes your worlds and settings. Copy the saves folder somewhere safe first, and copy anything else you want to keep.

  1. Copy %appdata%\.minecraft\saves to another location, such as your Documents folder.
  2. Uninstall Minecraft, then delete the %appdata%\.minecraft folder.
  3. Reinstall the game and launcher, start it once, then copy your saves back into the new saves folder.

Check that it worked

  • The game window opens and you reach the main menu without the launcher showing "Game crashed".
  • You can load a world and play for several minutes without the game closing.
  • If you re-added mods, the game still starts with all of them enabled.

If it still fails

  • Open the newest file in crash-reports and latest.log again and search for the first Exception; the text there usually names the mod, Java problem or memory error.
  • If only Minecraft crashes, hardware is less likely, but if other games crash too, check your RAM and GPU.
  • For a launcher stuck before the game starts, see Minecraft Launcher stuck on Preparing. For a similar crash with a different code, see exit code 6.
  • Ask for help on the official Minecraft support site (help.minecraft.net) or your modpack's support channel and include the log file.

Sources

  1. Tutorial:Update Java | Minecraft Wiki · Minecraft Wiki (community)
  2. Crash | Minecraft Wiki · Minecraft Wiki (community)
  3. How to Fix a Minecraft "Exit Code: 1" Error? 5 Solutions · Help Desk Geek