Minecraft Error Code 1 (Exit Code 1): How to Fix the Game Crash

Minecraft exit code 1 means that Minecraft crashed while booting up or soon after loading, and the launcher could not pinpoint the exact cause of the crash. When you start the game, the window flashes or freezes for a few seconds and the launcher shows a game crashed message with exit code 1. It’s one of the most common problems in Java Edition, and it’s generally caused by mods, graphics drivers, or launcher settings, not a broken game.

The most successful fixes are below. Start at the top, because the first two fix most exit code 1 crashes.

What Causes Minecraft Exit Code 1?

Exit code 1 is a general exit code from Java indicating that something went wrong. The game process was launched, then it hit an error it could not recover from and closed. Hence the same code appears for very different problems.

These are the usual causes:

  • A mod that’s outdated, broken, or doesn’t match your Minecraft version
  • Mods built for the wrong loader, like a Fabric mod in a Forge setup
  • Old or corrupted graphics drivers
  • Too much or too little RAM set in the launcher
  • Custom JVM arguments or a wrong Java path
  • Corrupted game files or launcher data

Check the Crash Report First

Usually the launcher will save a crash report, and it will often identify the problem itself. Open the launcher, choose the installation that crashed and find the crash log, or open the crash-reports folder in your .minecraft folder. Search the file for mod, OpenGL or a mod name. If you see a specific mod mentioned, you can skip straight to fixing that mod.

How to Fix Minecraft Exit Code 1

Test the game after each fix so you know what solved it.

1. Remove or Update Your Mods

The number one cause of exit code 1 is mods. It only takes one outdated mod, one missing dependency or a mod for a different version of Minecraft to crash the game at startup. To locate the bad mod:

  1. Press Win + R, type %appdata%\.minecraft and press Enter.
  2. Move the mods folder to the desktop so the game runs without mods.
  3. Start Minecraft. If it starts, a mod caused the problem.
  4. Add the mods back a few at a time until it crashes again, then update or remove the last mod you added.

Make sure your mods are compatible with your mod loader and your version of Minecraft. A Forge mod will not work in a Fabric profile, and the other way around.

2. Update Your Graphics Drivers

If you’re playing without mods and still get exit code 1, chances are your graphics drivers are outdated. Minecraft is built on OpenGL, and an outdated driver can make it crash when the game window opens. Go to NVIDIA, AMD or Intel depending on your graphics card, download the latest driver, and restart the PC after installing it.

3. Fix the RAM Allocation

Minecraft Launcher Edit installation screen with JVM arguments and -Xmx RAM setting

You can give Minecraft too much memory as well, which will make the game crash. Exit code 1 is common when the RAM setting is more than your PC actually has, or more than half of your RAM on a smaller system.

  • Open the Minecraft Launcher and click Installations.
  • Hover over your installation, click the 3 dots and choose Edit.
  • Click More Options and locate JVM Arguments.
  • Search for -Xmx and a number, such as -Xmx2G. That number is the RAM limit.
  • Set it to a reasonable figure, like 4G for a modded game on a 16GB PC, or cancel the custom setting and save.

4. Reset Custom JVM Arguments and Java Path

Extra JVM arguments added from a forum post, or a change to the Java executable, might stop the game from launching. Clear any custom arguments you set and switch the Java executable back to default. The launcher has its own Java runtime, and it’s typically the safest choice.

5. Repair or Reset the Minecraft Launcher

If the launcher data is corrupted, the game may crash before it even launches. Those who got the launcher from the Microsoft Store or Xbox app on Windows can repair it without losing their worlds:

  1. Open Settings > Apps > Installed apps.
  2. Select the three dots next to Minecraft Launcher, then Advanced options.
  3. Press Repair and try the game once more.
  4. If this does not work, click Reset.

6. Reinstall Minecraft

When you can’t fix it any other way, a clean reinstall gets rid of bad files. Don’t forget to first copy your saves folder from .minecraft to a safe spot before you start over. Then uninstall the launcher, remove the .minecraft folder, reinstall from the Minecraft website or Microsoft Store, and put your saves back.

How to Avoid Exit Code 1 Crashes

  • Keep mods updated and matched to your Minecraft version and loader
  • Add new mods gradually so you can find out which one is to blame
  • Update your graphics drivers every couple of months
  • Don’t set RAM higher than your PC can handle
  • Back up your saves folder before big changes

Final Thoughts

Minecraft exit code 1 is not very specific, but it’s rather easy to fix. Check the crash report, remove or update your mods, and update your graphics drivers. Those steps will usually solve the problem. If the game still fails to start, resetting the RAM and JVM settings, then repairing or reinstalling the launcher, should sort it out.

Was a mod behind your exit code 1 crash, or was it something else? If one of the fixes worked, please leave a comment about it, it could help someone else in the same situation.