Here’s the crux of the article in video form:

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

Original story (published on March 30, 2022) follows:

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

The Minecraft building system is full of possibilities, being one of the key aspects of the success of the game. The Internet is full of massive building 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 crashing issue where they receive an ‘Exit code -1’ error message when using Forge mods (1, 2, 3, 4, 5, 6, 7, 8).

Minecraft: Java Edition crashing or throwing ‘Exit code -1’ on Forge mods

According to multiple reports, the use of Forge mods is causing a crashing issue, an ‘Exit code -1’ message or a ‘Java Runtime Configuration may be invalid’ error message for many Minecraft: Java Edition players.

minecraft-java-edition-crashing-exit-code-1-forge-1
Source

Hello, I am trying to play 1.18.2 modded but when I try and launch the game with any mods aside from those that are installed and launched with forge it will crash with an exit code 1 and says the Java Runtime Configuration may be invalid. I have re-installed Minecraft, Java and even downgraded the forge version but nothing works.
Source

Some face the issue without Forge mods too

In some cases, the same ‘Exit code -1’ or ‘Java Runtime Configuration may be invalid’ message may appear to players who don’t have any Forge mod installed on Minecraft: Java Edition (1, 2, 3, 4, 5, 6, 7, 8).

Exit code: 1

Every time I try to launch Minecraft I get a screen that says Invalid java runtime configuration” “exit code 1” I don’t have mods or forge downloaded it’s just straight vanilla. I did download Minecraft before i downloaded java if that matters at all. I also get a screen that says “java exception occurred” any help would be appreciated
Source

Also, some players suggest that all versions of the game (from 1.7.10 to 1.18.2) could be affected.

minecraft-java-edition-crashing-exit-code-1-forge-3
Source

A potential explanation and fix

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

General info: Always prepare for errors when your mods aren’t for THE EXACT version you play. For example, 1.18.1 mods might not work for 1.18.2 and vice versa.
Source

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

minecraft-java-edition-crashing-exit-code-1-forge-2
Source

This might be the cause:

Latest Java = 17 -> for MC 1.16+

For older MC versions use Java 8
Source

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

Update 1 (June 06, 2022)

12:38 pm (IST): Many players are again reporting the issue where they are getting ‘Exit code -1’ error message. Unfortunately, Mojang support hasn’t yet acknowledged this issue.

Update 2 (June 08, 2022)

11:24 am (IST): A new update is now available for Minecraft players. So, if you are still having this issue then you can download it and see if the error gets fixed.

Update 3 (June 09, 2022)

04:52 pm (IST): According to Mojang’s official bug tracker, the crashing issue with the game has now been resolved.

Update 4 (June 13, 2022)

04:28 pm (IST): Players who have been affected by ‘Exit code -1’ issue are now approaching Minecraft Community Support on Discord to get it fixed.

Update 5 (June 14, 2022)

04:34 pm (IST): A Redditor has suggested a workaround to fix this issue which involves reinstalling the game with all of its contents.

Thanks for the advice guys- I finally uninstalled and reinstalled Minecraft with all of It’s contents (was trying to avoid that). The reinstall worked. (Source)

Update 6 (June 15, 2022)

01:18 pm (IST): A player has confirmed that the crashing issue that happens when using Forge mods persists even in the most recent 1.19 update.

Update 7 (June 16, 2022)

04:09 pm (IST): Here’s a possible explanation and a workaround for the crashing issue on Minecraft: Java Edition.

Minecraft-crashing-explanation-workaround
(Source)

06:18 pm (IST): A Redditor has suggested that opening the game in Administrator mode resolved the issue. This solution worked for the gamer around 3 months ago, but it’s still worth trying and might do the trick for you as well.

Update 8 (June 20, 2022)

12:23 pm (IST): There is another potential workaround for those players who are facing the issue:

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

Update 9 (June 22, 2022)

05:29 pm (IST): In case you’re facing the ‘Exit code -1’ issue with Minecraft while using OptiFine, then this might be the reason why:

Did you actually extract OptiFine instead of just copying it somewhere? Because the file name would suggest you didn’t. So… start the installer using Java and instead of installing it you’d extract it. Then copy the mod to the right location. (Source)

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

Thank you, that was the problem. (Source)

Update 10 (June 24, 2022)

05:58 pm (IST): A redditor suggested that players on Chromebooks running Linux can try updating drivers and allocating 4GB RAM in order to resolve the crashing issue.

Update 11 (June 28, 2022)

04:45 pm (IST): One of the affected players has suggested that gamers can try some alternative launchers such as PolyMC or GDLauncher to fix the exit code issue.

Update 12 (July 1, 2022)

02:20 pm (IST): A gamer suggested that updating Windows to the latest version might help you resolve the Exit code glitch.

Update 13 (July 4, 2022)

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

Workaround: if you’re going to use 1.8.9 use lunar, feather, or badlion client (Source)

Update 14 (July 12, 2022)

05:36 pm (IST): A Redditor has suggested that players should try other builds from here or another version of the modpack.

Update 15 (July 14, 2022)

02:20 pm (IST): 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, 2022)

10:34 am (IST): If players are getting ‘Exit code-1’ error when running Magnesium mod, then they can try disabling it and regenerating the world again to fix it.

You mentioned you have magnesium which is just a fork of sodium. Magnesium references sodium’s code in its fork which is why it mentions sodium in the crash report. Disable that and try again. (Source)

Update 17 (July 19, 2022)

11:52 am (IST): While gamers were reporting that they are getting ‘Exit code -1’ error when using Forge mods, a Redditor now claims that this issue is also affecting players with no mods at all.

Minecraft-exit-code-without-mods
(Source)

Update 18 (July 22, 2022)

06:36 pm (IST): Below is a video guide suggesting some troubleshooting steps that might help you fix this issue.

https://www.youtube.com/watch?v=IzBOZ7ySsRg

Update 19 (July 25, 2022)

05:22 pm (IST): 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 (August 22, 2022)

06:08 pm (IST): One of the affected players has pointed out that CraftTweaker could be causing the game to crash and throw ‘Exit Code 1’ error. Hence, if you have this mod, then you should try disabling it.

Update 21 (November 8, 2022)

06:36 pm (IST): Some players have again taken to Reddit (1, 2, 3) to report that they are getting ‘exit code -1’. However, the support hasn’t yet acknowledged these reports.

PiunikaWeb started as purely an investigative tech journalism website with main focus on ‘breaking’ or ‘exclusive’ news. In no time, our stories got picked up by the likes of Forbes, Foxnews, Gizmodo, TechCrunch, Engadget, The Verge, Macrumors, and many others. Want to know more about us? Head here.

Jean Leon
240 Posts

Next article View Article

[Update: Fixed] YouTube TV library not working or loading on multiple platforms, issue being looked into

New updates are being added at the bottom of this story……. Original story (published on September 16, 2021) follows: YouTube is one of the leading online video-sharing platforms with...
Feb 07, 2023 0 Min Read