Skip to content

Live tool + guide

Minecraft Exit Code 1, -1 and -1073741819: What Each Code Means

Short answer: Minecraft exit code 1 means the game process stopped with a generic failure; MinecraftHopper, the community-maintained help site on minecraft.net, says Minecraft does not currently use non-generic exit statuses. The cause is in the log. In modded play, check it for a Java version mismatch, a missing dependency or a mod built for another Minecraft version. Open logs/latest.log, or paste it into the crash analyzer below, and fix what it names.

Crash log analyzer

Paste a log, get the cause

Runs in your browser. Nothing is uploaded.

Minecraft exit code 1 is the number the launcher prints when the game's Java process ended with a failure, and on its own it says nothing about why. MinecraftHopper, the community-maintained help site on minecraft.net, states that Minecraft does not currently use non-generic exit statuses, and its table lists both 1 and -1 simply as failure. The real reason is written in the game's log a few seconds before the process stopped.

So the table below does two jobs. It tells you what each number you might see does mean, including the long negative ones, and it sends you to the log with a short list of what to look for. If you would rather not read the log yourself, paste it into the crash analyzer above; it runs in your browser and names the likely mod. The crash report guide explains the same log line by line.

Exit codes and their fixes

Find the number your launcher showed. The meaning column comes from the MinecraftHopper help page, Microsoft's NTSTATUS reference, the GNU Bash manual and Mojang's bug tracker; the fix column is what to check first in a modded setup.

Exit codeWhat it meansFirst thing to check
1Generic failure; Minecraft does not use specific codeslogs/latest.log: Java version, missing dependency, wrong-version mod
-1Generic failure, same as 1Same as exit code 1
0Success: the process ended normallyIf the game closed by itself, read the end of latest.log for what asked it to stop
-1073741819Windows 0xC0000005, STATUS_ACCESS_VIOLATION: native code touched memory it may notGraphics driver; overlays; the hs_err_pid file in the game folder
-805306369Listed on Hopper (bug MCL-6550, resolved Invalid); the tracker's suggested fixes point at other software on the PCRemove a _JAVA_OPTIONS variable, disable the Discord overlay, scan for unwanted software
137 (Linux/macOS server)128 + 9: killed by signal 9 (SIGKILL) from outsideWhether the machine ran out of memory, or a panel stopped it
255 (Linux/macOS)Fallback status used when the real status is above 255Read the log; the original status is not shown
Exit codes you may see from the launcher or a server console. Sources: hopper.minecraft.net/help/exit-code, Microsoft NTSTATUS values, GNU Bash manual, Mojira MCL-6550; read 2026-10-21.

Why the number carries so little

An exit status is a single integer a program hands back to the operating system when it ends. Java's own documentation puts it plainly: by convention a nonzero status code indicates abnormal termination, and that is the whole contract. A missing library, a Java mismatch and a broken Mixin all end the same way, so the launcher shows you the same 1.

That is why searching for the code returns a long list of unrelated fixes. Updating drivers, reinstalling Java and deleting the mods folder each fix someone's exit code 1, because each of them happens to remove someone's actual cause. Use the flowchart to go straight to yours.

Flowchart for exit code 1: does a crash report exist; if yes read the last Caused by line; if no open latest.log and search for UnsupportedClassVersionError, missing dependency messages, OutOfMemoryError; if nothing found, bisect the mods folder.
Exit code 1 triage, from the code to the fix in four questions. Produced by howtomodminecraft.com, October 2026.

Finding the log in your launcher

A crash report is written only when Minecraft's own crash handler catches the failure; a crash of the Java Virtual Machine itself writes an hs_err_pid file to the game folder instead, and many startup failures produce neither. latest.log in the logs folder records the session either way. These are the quickest routes to it.

  • Official launcher: the logs folder sits inside .minecraft, which the Minecraft Wiki gives as %APPDATA%\.minecraft on Windows (press Win+R and paste %appdata%\.minecraft\logs), ~/Library/Application Support/minecraft on macOS and ~/.minecraft on Linux. Open latest.log.
  • CurseForge app: the pack is not in .minecraft. CurseForge's Standard setup keeps modpacks under its modding folder, C:\Users\[user]\curseforge\minecraft\ on Windows, ~/Documents/curseforge/minecraft/ on a Mac and ~/Documents/curseforge/minecraft on Linux; open the pack's folder there, then logs. The app's Game Dashboard can also show the game's logs in real time.
  • Modrinth App: open the instance and use its Logs tab, which shows the current and earlier sessions.
  • Prism Launcher: Edit the instance and open the Minecraft Log page; its Upload button sends the log to the paste service configured in Prism's settings.
  • ATLauncher: choose Open Folder on the instance, then open logs.
  • Dedicated server: logs/latest.log in the server directory, next to the server jar.

Rule out first: the wrong Java

Each Minecraft version needs a specific Java. Java Edition 26.1 and later, including 26.3, need Java 25. 1.20.5 to 1.21.11 need Java 21, 1.18 to 1.20.4 need Java 17, 1.17 and 1.17.1 need Java 16, and 1.16.5 and older need Java 8. The official launcher downloads the right runtime by itself, so this mostly bites in third-party launchers, on servers, and when a system-wide Java takes over.

The log tells you which Java was wanted. Java class files record a major version equal to the Java version plus 44, and the error quotes both numbers. In the example below the mod was built for class file 69.0, which is Java 25, and the game ran on 65.0, which is Java 21.

To see which Java actually ran, look at the Java Version line in a crash report's System Details, or, on Forge, the 'ModLauncher … starting: java version' line near the top of latest.log. If it reads 17 or 21 for a 26.x instance, that is your exit code 1.

The fix is to point the instance at the Java that matches the Minecraft version. In Prism, turn on Autodetect Java version and Auto-download Mojang Java in Settings, Java, or pick a matching runtime under Java Installation in the instance's own Java settings. In ATLauncher, set Use Java Provided By Minecraft to Yes in the instance's Java settings and leave Runtime Override on Use Default (Recommended). On a server, install the matching Java and call it by full path in the start script.

How a Java mismatch reads in latest.log

java.lang.UnsupportedClassVersionError: dev/example/Mod has been compiled
  by a more recent version of the Java Runtime (class file version 69.0),
  this version of the Java Runtime only recognizes class file versions up to 65.0

69 - 44 = 25  -> the mod needs Java 25 (Minecraft 26.1+)
65 - 44 = 21  -> you launched with Java 21
Crash log analyzer on this site showing an UnsupportedClassVersionError log ending in exit code 1, and its result: Wrong Java, needs Java 25, running Java 21, with the fix to install Java 25 and select it in the launcher.
The analyzer at the top of this page reading a sample log with the same mismatch: class file 69.0 wanted, 65.0 available, which it reports as needs Java 25, running Java 21. Screenshot of this site's own crash log analyzer, November 2026. Site terms.

Other causes, in the order to check them

If the Java version matches, search latest.log for the strings below. They are the messages the loaders print themselves, and each points at one fix.

  1. "requires … which is missing!" (Fabric) or "Missing or unsupported mandatory dependencies" (NeoForge): install the library named, for your exact Minecraft version and loader. Fabric API is the usual one on Fabric.
  2. "but only the wrong version is present": the dependency is there but built for another version. Replace it rather than adding a second copy.
  3. A line under "Incompatible mods found!" where the dependency is minecraft itself, such as "requires version 1.20.1 of Minecraft": that mod file was built for a different Minecraft version. Check its versions on CurseForge or Modrinth and swap it for the right build.
  4. "is present in multiple files": the same mod twice, usually an old and new version side by side. Delete the older one.
  5. "is not a valid mod file" or "is for Minecraft Forge or an older version of NeoForge" (NeoForge): a Forge mod in a NeoForge instance, a Fabric mod in a Forge instance, or a corrupt download.
  6. java.lang.OutOfMemoryError: the game ran out of the memory you allowed it. Raise -Xmx a step; our RAM page has starting points.
  7. Nothing matches: halve the mods folder, launch, and keep halving whichever half still fails.

Exit code 1 on a dedicated server

A server that stops right after its first start is usually behaving as designed. NeoForge's server documentation says the server will shut down on the first run, and tells you to open eula.txt, change eula=false to eula=true and start it again; the vanilla server's own message is 'You need to agree to the EULA in order to run the server. Go to eula.txt for more info.' Doing so means you agree to the Minecraft EULA.

If it fails later, read logs/latest.log in the server directory. "FAILED TO BIND TO PORT!" is followed in the vanilla server by "Perhaps a server is already running on that port?"; stop it or change server-port in server.properties. An UnsupportedClassVersionError means the host's Java is older than the Minecraft version needs; rented hosts usually have a Java selector in the panel. A server that dies with 137 on Linux was killed from outside. Running out of memory is one way that happens: PaperMC's documentation notes that Java needs memory on top of the -Xmx value and recommends setting -Xmx about 1000–1500 MB below the plan size, for example 6500 MB on an 8 GB host.

Long negative numbers are Windows status codes

Windows reports a crash in native code as a 32-bit NTSTATUS value, and Java launchers print it as a signed integer, which is why the number is large and negative. To decode one, add 4,294,967,296 and convert the result to hexadecimal: -1073741819 becomes 0xC0000005, which Microsoft's NTSTATUS list names STATUS_ACCESS_VIOLATION. Any other long negative code can be looked up the same way.

An access violation means native code, not a mod's Java, touched memory it was not allowed to. In Minecraft that native code includes the graphics driver, the windowing library and overlay software that injects itself into games. Update the graphics driver from the vendor's site, turn off overlays such as Discord's, and look for an hs_err_pid file in the game folder: Oracle's troubleshooting guide shows that this fatal error log names the 'Problematic frame', the native library where the crash happened. 26.3 replaced GLFW with SDL3 for the window and input (its version file lists LWJGL's SDL libraries and no GLFW), so on current versions the library named may be SDL.

-805306369 converts to 0xCFFFFFFF, which is not a documented NTSTATUS value. Mojang's tracker has it as MCL-6550, resolved Invalid, with suggested fixes that all point outside Minecraft: remove a _JAVA_OPTIONS environment variable set by some tuner programs and keyboards, disable the Discord overlay, and check the PC for unwanted software.

Questions people actually ask

What does exit code 1 mean in Minecraft?
That the game's Java process ended with a failure. Minecraft does not use specific codes, so the number carries no diagnosis; the reason is in logs/latest.log.
Is exit code 1 bad?
It means something failed. The code itself says nothing about your worlds or game files; the log says what failed and which mod, dependency or Java setting to change.
What is the difference between exit code 1 and -1?
None that helps you. The MinecraftHopper help page lists both as generic failure. Read the log in either case.
What does exit code 0 mean?
The process ended normally. If the game closed by itself with 0, Java did not report a failure; the end of latest.log shows what asked it to stop.
How do I fix exit code -1073741819?
It is a Windows access violation in native code. Update your graphics driver from the vendor, disable overlays, and check the hs_err_pid file in the game folder, whose 'Problematic frame' line names the library that crashed.
Why did exit code 1 start after a Minecraft update?
Check two things: whether the profile now runs a newer Minecraft version than your mods were built for, and whether that version needs a newer Java. 26.1 and later need Java 25.
Does reinstalling Minecraft fix exit code 1?
Read the log first. If it names a mod, a dependency or the Java version, reinstalling the game does not change that cause; fixing what the log names does.
Can too little RAM cause exit code 1?
It can. When the game exhausts the memory you allowed it, Java throws java.lang.OutOfMemoryError and the log records it; raise -Xmx one step rather than giving it everything.
Why does my server stop on its first launch?
It is designed to: the first run creates eula.txt and shuts down. Set eula=true in that file, which means accepting the Minecraft EULA, and start it again.
Is there a tool that reads the log for me?
Yes: the crash analyzer at the top of this page, which also sits on our crash report page. Paste latest.log or a crash report; it runs in your browser and flags Java mismatches, missing dependencies, Mixin failures and more.

Sources & further reading

Back to the full How to Mod Minecraft guide for the whole install walkthrough from the beginning.

ShareRedditXFacebook
Sukie, editor of How to Mod Minecraft

Sukie · Editor

Sukie runs How to Mod Minecraft. She writes and edits every guide on the site, works through each install path herself before publishing, and rewrites anything that turns out to be wrong. The focus here is narrow on purpose: getting mods, loaders and modded servers working without wading through forum threads.

About this site · How guides are checked · Last updated November 5, 2026

NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.