Java edition crashes or throws ‘Exit Code -1’ with Forge mods

[Updated] Minecraft server down or not working (unable to play multiplayer), issue acknowledged
Written by ga_dahmani
[Updated] Minecraft server down or not working (unable to play multiplayer), issue acknowledged

Here is the crux of the article in video form:

New updates are being added at the end of this story…….

The original story (published March 30, 2022) is as follows:

Minecraft is a popular open world sandbox game where you have to explore, survive and build.

Minecraft’s construction system is full of possibilities, being one of the key aspects of the game’s success. The internet is full of massive construction projects of all kinds, from buildings to entire worlds.

On PC, Minecraft is available in two versions: Standard (or ‘Bedrock’) and Java Edition. Minecraft Java Edition is available on Windows, Mac, and Linux.

You can expand the possibilities of Minecraft: Java Edition through Forge, which is a server that improves the compatibility of the game with mods.

That said, many Minecraft: Java Edition players are facing a crash issue where they receive an ‘Exit Code -1’ error message when using Forge mods (1, two, 3, 4, 5, 6, 7, 8).

Minecraft: Java Edition crashes or throws ‘Exit Code -1’ on Forge mods

According to various reports, using Forge mods is causing a crash issue, “Exit code -1” error message, or “Java runtime configuration may be invalid” error message for many players of Minecraft: Java Edition.


Hi, I’m trying to play modded 1.18.2, but when I try to start the game with any mod besides the ones installed and launched with forge, it will fail with an exit code of 1 and say the java runtime config can not be valid. I have reinstalled minecraft, java and even downgraded the forge version but nothing works.

Some face the problem without Forge mods as well

In some cases, players who do not have any Forge mods installed in Minecraft: Java Edition (1, two, 3, 4, 5, 6, 7, 8).

Exit code: 1

Every time I try to start Minecraft I get a screen that says Invalid Java Runtime Configuration” “Exit Code 1” I don’t have any mods or forges downloaded, it’s just plain vanilla. I downloaded Minecraft before I downloaded Java, if that matters. I also get a screen that says “a java exception occurred”. Any help would be appreciated.

Additionally, some players are suggesting that all versions of the game (from 1.7.10 to 1.18.2) could be affected.


A possible explanation and solution.

The problem could be related to the version that the mod you installed was developed for. To avoid problems, you should install mods only on the version of the game for which they were developed.

Overview: Always be prepared for bugs when your mods are not for THE EXACT version you play. For example, 1.18.1 mods might not work for 1.18.2 and vice versa.

The version of Java on your PC could also cause problems. It seems that you should only install the latest versions of Java for versions of Minecraft greater than 1.16. For versions of Minecraft prior to v1.16, you will need to use Java 8.


This could be the cause:

Latest Java = 17 -> for MC 1.16+

For older versions of MC, use Java 8

There is no official acknowledgment of the problem from the developers yet. We will update this story if there is any change in the situation in the future.

Update 1 (June 06)

12:38 PM (CST): Many players are back reporting the problem where they receive the error message ‘Exit code -1’. Unfortunately, Mojang support has not yet acknowledged this issue.

Update 2 (June 08)

11:24 a.m. (CST): A new update is now available for Minecraft players. So if you still have this problem, you can download it and see if the error is fixed.

Update 3 (June 09)

16:52 (CST): According to Mojang official bug locatorthe game crash issue has now been resolved.

Update 4 (June 13)

16:28 (CST): Players who have been affected by the ‘Exit Code -1’ issue now zoom in Minecraft Community Support on Discord to fix it.

Update 5 (June 14)

16:34 (CST): A Redditor suggested a solution to fix this issue that involves reinstalling the game with all of its content.

Thanks for the tips guys – I finally uninstalled and reinstalled minecraft with all its content (was trying to avoid it). The reinstall worked. (Font)

Update 6 (June 15)

13:18 (CST): a player has confirmed that the crash issue that occurs when using Forge mods persists even in the latest 1.19 update.

Update 7 (June 16)

16:09 (CST): Here is a possible explanation and solution for the crashing issue in Minecraft: Java Edition.


18:18 (CST): A Reddit user has He suggested that opening the game in Admin mode solved the problem. This solution worked for the player about 3 months ago, but it’s still worth a try and might work for you too.

Update 8 (June 20)

12:23 PM (CST): There is another possible solution for those players facing the issue:

All I did was set the Java executable to C:\Program Files\Java\jdk-\bin\javaw.exe
Thanks for the support!

Update 9 (June 22)

17:29 (CST): In case you are facing the ‘Exit Code -1’ issue with Minecraft while using OptiFine, this might be the reason:

Did you really extract OptiFine instead of just copying it somewhere? Because the filename would suggest you didn’t. So… you start the installer using Java and instead of installing it, you extract it. Then copy the mod to the correct location. (Font)

A user responded with this information to another individual’s complaint about getting the error code. Following the suggestion, the user confirmed that indeed that was the problem and the issue was resolved.

Thanks, that was the problem. (Font)

Update 10 (June 24)

17:58 (CST): a redditor He suggested Players on Chromebooks running Linux can try updating drivers and allocating 4GB of RAM to resolve the crash issue.

Update 11 (June 28)

16:45 (CST): One of the affected players has He suggested that players can try some alternative launchers like PolyMC or GDLauncher to fix the exit code issue.

Update 12 (July 1)

14:20 (EST): a player He suggested that updating Windows to the latest version might help you resolve the exit code failure.

Update 13 (July 4)

13:57 (CST): A Redditor has suggested a workaround that might help those affected to resolve this issue.

Workaround: If you are going to use 1.8.9, use the lunar, feather, or badlion client (Font)

Update 14 (July 12)

17:36 (CST): A Reddit user has He suggested that players should try other constructions of here or another version of the modpack.

Update 15 (July 14)

14:20 (EST): Minecraft has released a new update with v1.19.10. Players can install it and see if it fixes the ‘Exit Code -1’ issue.

Update 16 (July 18)

10:34 a.m. (CST): If players get the ‘Exit Code-1’ error when running the Magnesium mod, they can try disabling it and regenerating the world again to fix it.

You mentioned that it has magnesium, which is just a fork of sodium. Magnesium references the sodium code on your fork, which is why you mention sodium in the accident report. Please disable that and try again. (Font)

Update 17 (July 19)

11:52 a.m. (CST): While players were reporting that they were getting the ‘Exit Code -1’ error when using Forge mods, a Reddit user is now claiming that this issue is also affecting players who don’t have any mods.


Update 18 (July 22)

18:36 (CST): Below is a video guide that suggests some troubleshooting steps that might help you fix this issue.

Update 19 (July 25)

17:22 (CST): minecraft has released a new RC update with version 1.19.1. However, the changelog does not mention any fix for the ‘Exit code -1’ error.

Update 20 (Aug 22)

18:08 (EST): One of the affected players has he pointed that CraftTweaker might be causing the game to crash and throw an ‘Exit Code 1’ error. So if you have this mod then you should try disabling it.

PiunikaWeb started out as a purely investigative tech journalism website with a primary focus on “breaking” or “exclusive” news. Before long, Forbes, Foxnews, Gizmodo, TechCrunch, Engadget, The Verge, Macrumors, and many others picked up our stories. Want to know more about us? head here.

About the author


Leave a Comment