Minecraft Exit Code 1: How to Fix the Game Crashed Error

In this guide
- Quick fixes to try first
- 1. Read the crash report or latest.log
- 2. Remove or update mods that do not match your game
- 3. Test with a fresh vanilla installation
- 4. Check which Java the game uses
- 5. Change the memory allocated to Minecraft
- 6. Update your graphics driver
- 7. Repair or reinstall the Minecraft Launcher
- What causes exit code 1
- Still not fixed?
- FAQ
Minecraft exit code 1 means Minecraft: Java Edition stopped abnormally: by Java convention any nonzero exit code signals an abnormal end, and the number does not say why. Common causes of crashes are mods or a mod loader that do not match your game version, the wrong Java version, a memory setting that does not suit your PC and an outdated graphics driver, and the crash report or log is where you find out which. The fixes below go from quickest to most involved.
Quick fixes to try first
- Restart your PC and try again.
- Close other apps that use a lot of memory or processor time before you press Play.
- If you just added or updated a mod, remove it and try again.
- Use a personal PC if you can. Work or school devices may have restrictions that stop Minecraft running properly.
1. Read the crash report or latest.log
The crash report names the actual error, and often the mod behind it.
- Press Windows + R, type
%appdata%\.minecraftand select OK. You can also open the launcher's Installations tab and select the folder icon next to the installation that crashed. - Open the
crash-reportsfolder. Reports are named by the time of the crash, for examplecrash-yyyy-mm-dd_hh.mm.ss-client.txt, so open the newest one. - If there is no new crash report, open the
logsfolder and readlatest.log. Older logs are saved as.log.gzfiles. - If neither shows the crash, look in
.minecraftitself for a file namedhs_err_pidfollowed by numbers and.log. That means Java itself crashed. The Minecraft Wiki (a community wiki) says these crashes almost always come from running out of RAM or from very memory or processor heavy activity. Go to fix 5.
In the report, read the top section, under ---- Minecraft Crash Report ----, first. Fabric's crash report guide says this holds the main error and a stack trace that can usually point to the mod that caused the crash. The -- System Details -- section further down lists your Java version, the memory given to the game and, on Fabric, every installed mod.
2. Remove or update mods that do not match your game
Mods are among the most common causes of Minecraft crashes, especially a mod built for a different game version or a different mod loader.
- Check the Minecraft version and the mod loader (Forge, NeoForge, Fabric or Quilt) of the installation that crashes.
- Open
%appdata%\.minecraft\modsand move every.jarfile to a folder on your desktop. - Launch the game. If it starts, the problem is one of the mods.
- Move the mods back one at a time, launching after each, until the crash returns.
- Replace that mod with a file made for your exact Minecraft version and your mod loader. Fabric's docs note that most Fabric mods also need Fabric API.
For a CurseForge modpack, CurseForge's exit code 1 guidance is to repair or reinstall the pack if only that pack crashes, and to contact the pack's authors if it still crashes. If every pack and custom profile crashes, CurseForge suggests repairing the installation, updating your graphics driver (fix 6) and testing a custom profile with no mods (fix 3).
3. Test with a fresh vanilla installation
A new installation with default settings shows whether your old installation is the problem.
- Open the Minecraft Launcher and sign in with your Microsoft account.
- Select Minecraft: Java Edition on the left, then the Installations tab at the top.
- Select New installation, enter a name and choose the same game version as the world that crashes.
- Select Install and launch it.
If it launches, Minecraft's help says to check the mods or advanced settings, such as JVM arguments, of your old installation. For modded setups, CurseForge suggests a custom profile with no mods. If that still crashes, the problem is the mod loader or the game itself.
4. Check which Java the game uses
The Minecraft Wiki says the game crashes during startup if it runs on the wrong Java version.
- In the launcher, open the Installations tab and select the installation.
- Select More Options on the Edit installation screen, the same place you change JVM arguments in fix 5.
- Find the Java executable field on the edit screen. The Minecraft Wiki says it uses the Java runtime bundled with the launcher by default.
- If it points to a Java you installed yourself, compare it with the table below.
| Minecraft: Java Edition version | Minimum Java |
|---|---|
| 1.12 to 1.16.5 | Java 8 |
| 1.17 to 1.17.1 | Java 16 |
| 1.18 to 1.20.4 | Java 17 |
| 1.20.5 to 1.21.11 | Java 21 |
| 26.1 and later | Java 25 |
The table is from the Minecraft Wiki, which notes that the launcher only accepts a custom Java with the same main version as the minimum the game needs.
5. Change the memory allocated to Minecraft
Minecraft's help says memory allocation that does not match your PC's RAM can cause crashes. After 26.1-snapshot-2 the default changed from 2 GB to 4 GB, so a PC with less than 4 GB of RAM needs it set back to 2 GB.
- Check your installed RAM in Start > Settings > System > About. On a Mac, use Apple icon > About This Mac.
- Open the launcher, select Minecraft: Java Edition, then Installations, and select the installation.
- Select More Options. Copy everything in JVM arguments into Notepad and save it as a backup.
- Find the memory value, such as
-Xmx2G, and change only the number.-Xmx4Ggives the game 4 GB. - Select Save and launch.
Minecraft's memory allocation article gives 4 GB as the maximum on a 32-bit system and half your RAM as the recommended maximum on a 64-bit one. If the game will not start after the change, check for typos or paste your backup back in.
6. Update your graphics driver
CurseForge lists outdated GPU drivers under exit code 1, and Minecraft's help recommends getting the newest driver straight from the manufacturer.
- Go to the website of your graphics card's maker: NVIDIA, AMD or Intel.
- Download and install the latest driver for your card.
- Restart and launch Minecraft.
If a normal update does not help, our Video TDR Failure guide covers a clean driver reinstall for each brand.
7. Repair or reinstall the Minecraft Launcher
If every installation crashes, including a fresh vanilla one, Minecraft's help suggests a fresh install. Its launcher crash article, written for when the launcher itself crashes or freezes, covers repairing the launcher app and reinstalling it.
- Select Start > Settings > Apps > Installed apps.
- Select the More icon next to Minecraft Launcher, then Advanced options. Microsoft notes that some apps don't have it. If Minecraft Launcher doesn't, skip to the reinstall below.
- Select Repair if it is available. If it is not there or does not help, select Reset.
To reinstall, first back up your worlds by copying %appdata%\.minecraft\saves somewhere safe. Uninstall the launcher, then download it again from minecraft.net or the Microsoft Store. Only delete the .minecraft folder if you have that backup, because it holds your worlds and screenshots and Minecraft support cannot recover deleted files.
What causes exit code 1
A nonzero exit code is Java's general signal that a program ended abnormally, and none of the sources here ties exit code 1 to one cause. The Minecraft Wiki lists mods, bugs, updates, running out of memory and the wrong Java version. Minecraft's help adds a poor memory setting and a corrupt installation, and CurseForge adds outdated graphics drivers. If the game starts but you cannot join a server, that is a connection error rather than a crash: see our guide to the io.netty connection error in Minecraft.
Still not fixed?
- Modded game: Minecraft Support cannot help with mod issues. Upload the crash report to a paste site and send the link to the mod author, the modpack author, or the developers of your mod loader. Fabric's Discord has a #player-support channel and CurseForge's has #minecraft-support.
- Vanilla game that still crashes after a fresh installation, a driver update and a launcher repair: contact Minecraft Support through help.minecraft.net, or report the bug on Mojang's bug tracker with the crash report attached.
- Other games crash too: the problem may be your hardware, such as overheating, rather than Minecraft.
FAQ
Is exit code 1 different from exit code -1?
None of the official pages used for this guide gives either number a separate meaning. Both are nonzero, which Java treats as an abnormal end, so read the crash report and follow the same fixes.
Where are Minecraft crash reports on a Mac?
In ~/Library/Application Support/minecraft/crash-reports. In Finder, press Shift + Command + G, paste the path and press Return. Logs are in the logs folder next to it. On Linux, use ~/.minecraft/crash-reports.
Will reinstalling Minecraft delete my worlds?
Uninstalling the launcher is a separate step from deleting the .minecraft folder, which is where your worlds are. Copy the saves folder before you delete anything.



