Minecraft Exit Code 1 (and -1): How to Fix the Crash (2026)

“Exit Code: 1” (sometimes shown as -1) means the Minecraft Java Edition game process closed with an error before or during loading. The code itself is generic: it only tells you the game crashed, not why. In most cases the cause is a broken or mismatched mod, a wrong Java setting in the launcher, bad JVM arguments (memory settings) or an outdated graphics driver. The fastest fix is to read the crash log, then work through the fixes below in order.

Quick fix: In the Minecraft Launcher, open Installations, edit the profile that crashes, click More options, and (1) reset Java executable to the launcher’s bundled runtime, (2) restore the default JVM arguments. Then launch a clean vanilla profile. If vanilla works, the problem is a mod, mod loader or resource pack.

What causes Minecraft exit code 1

Cause Typical sign Fix
Mod built for a different Minecraft version or loader Crash right after the loading bar; log names a mod Update or remove that mod
Missing mod dependency (e.g. a library mod) Log says a mod “requires” another Install the dependency
Custom Java path pointing to the wrong Java version Crash instantly, before any window opens Use the launcher’s bundled Java
Bad JVM arguments or too much / too little RAM “Could not reserve enough space” or instant crash Reset JVM arguments, set sensible RAM
Outdated or broken graphics driver Crash when the window opens; log mentions OpenGL or the GPU driver Update GPU driver
Corrupted game files or options Vanilla crashes too Repair launcher, reinstall version

Step 1: read the crash log

The launcher usually shows a crash screen with a link to the log. You can also open the files yourself:

  1. Press Win + R, type %appdata%\.minecraft and press Enter. (On macOS the folder is ~/Library/Application Support/minecraft.)
  2. Open the crash-reports folder and the newest file, or open logs\latest.log.
  3. Look near the top for the “Description” line and for any mod name or file name mentioned in the error. That’s usually your culprit.

If you play with a third-party launcher (CurseForge, Modrinth App, Prism), it keeps its own logs inside the instance folder.

Fixes for exit code 1, in order

1. Test a clean vanilla profile

Create a new installation in the launcher using the latest release with no mods. If it starts, your game files and Java are fine and the problem is in your modded setup. Jump to modded crashes.

2. Use the launcher’s bundled Java

  1. Open Installations, hover over the profile and click the three dots, then Edit.
  2. Click More options.
  3. If Java executable points to a Java you installed yourself, clear it or switch it back to the bundled runtime. The official launcher downloads the correct Java version for each Minecraft version automatically.

Using an old Java with a new Minecraft version (or the other way round) is one of the most common causes of an instant exit code 1. Recent versions need a recent Java (1.20.5 and newer need at least Java 21), which is why the bundled runtime is the safest choice.

3. Reset JVM arguments and memory

  • In the same More options box, check the JVM arguments line. A typo, or flags copied from an old guide, can stop Java from starting.
  • The -Xmx value sets maximum RAM, e.g. -Xmx4G. Don’t set it higher than your PC can spare: allocating most of your system RAM can crash the game or Windows. Vanilla runs fine on the default; large modpacks usually need more.
  • If you’re unsure, delete the profile and create a new one to get the default arguments back.

4. Update your graphics driver

Download the latest driver from NVIDIA, AMD or Intel (or use Windows Update for laptops with integrated graphics). On laptops with two GPUs, set Java / the Minecraft launcher to use the high-performance GPU in Windows Settings → System → Display → Graphics.

5. Remove shaders and resource packs

Move everything out of resourcepacks and shaderpacks temporarily. A pack made for an older version can crash loading.

6. Reset options.txt

Rename options.txt in the .minecraft folder to options-old.txt. Minecraft creates a fresh one with default settings on the next launch.

7. Repair or reinstall the launcher

On Windows, open Settings → Apps → Installed apps, find the Minecraft Launcher, and use Advanced options → Repair (or Reset). If that doesn’t help, uninstall and reinstall it from minecraft.net or the Microsoft Store. Back up your saves folder first.

8. Close overlays and conflicting software

Overlay and recording tools, and some antivirus programs, can block Java. Close them, or add Java and the launcher as exceptions, and try again.

Fixing modded crashes

  1. Match versions: every mod must be built for your exact Minecraft version and your loader (Fabric, Forge, NeoForge or Quilt). A Fabric mod won’t run on Forge.
  2. Check dependencies: many mods need a library mod (for example Fabric API). The log usually names what’s missing.
  3. Split the mods folder: move half the mods out, launch, and repeat with the half that crashes until you find the bad mod.
  4. Update the loader itself to the latest build for your version.
  5. After a big update, wait for your mods to be updated, or keep playing the older Minecraft version until they are.

Lag rather than crashes? See our Minecraft lag spikes guide. Looking for safe, popular mods? Try our best Minecraft mods list.

Bedrock and other platforms

Exit code 1 is a Java Edition launcher error. Bedrock Edition (Windows, consoles, mobile) doesn’t use Java, so if Bedrock closes on its own, update the game, restart the device, and on Windows try the Repair option for the Minecraft app.

Frequently asked questions

Is exit code 1 the same as exit code -1?

Both mean the game process stopped with an error. Neither tells you the cause, so the fix is the same: read the crash log and work through the steps above.

Will fixing exit code 1 delete my worlds?

No. None of the fixes above touch the saves folder. Still, back it up before reinstalling anything.

Why does exit code 1 happen only with mods?

Usually because one mod doesn’t match your Minecraft or loader version, or a required library is missing.

Do I need to install Java myself?

Not with the official launcher. It bundles the right Java runtime for each version. Manually installed Java is only needed for some servers and third-party launchers.

More Minecraft help: all Minecraft commands and the chunk borders guide.

Our guides are researched, fact-checked and updated as games change. How we research and verify our guides.