When Minecraft fails to launch correctly, it will sometimes crash with the "exit code: 1" error. While the error message indicates issues with Java runtime configuration, there can also be other reasons. An outdated graphics driver, incorrect in-game settings, incompatible mods, buggy game files, and an invalid launcher file path can also trigger the "exit code:1" error on Windows.
Here we show you a few quick troubleshooting steps to fix the "exit code: 1" and get back to playing Minecraft on your Windows computer.
1. Delete or Disable Outdated Mods
The "exit code: 1" error can occur due to outdated mods. To resolve the error, check the Minecraft mods folder and delete it. Removing mods can break your worlds. So make sure to create a backup before attempting to remove any mods. Here’s how to do it.
%appdata%\ 

Once all the mods are removed, close File Explorer and relaunch Minecraft to see if the error is resolved. On the flip side, you may find some Minecraft levels (worlds) broken upon launch. You may also want to re-download mods to make further modifications.
2. Repair Minecraft Launcher
You can fix common problems with the Minecraft Launcher using the built-in repair option on Windows. During repair, Windows will look for common issues and try to fix them automatically. It will also delete the app’s data.
To repair Minecraft Launcher:


Similarly, you can also repair your Minecraft game. Open Minecraft’s Advanced Options and perform a repair in the Settings app.
3. Modify the Minecraft Launcher File Path

Issues with the Minecraft Launcher file path can cause the "exit code: 1" on Windows. If your user name has a special character, the Minecraft Launcher file path may not respond to a user account with a special character.
To fix the issue, you’ll need to modify the Minecraft Launcher file path to allow the launcher to access the launcher without special characters.
To change the Minecraft Launcher file path:
–workDir %ProgramData%.minecraft "C:\Program Files (x86)\Minecraft Launcher\MinecraftLauncher.exe" –workDir %ProgramData%.minecraft 4. Change the Java Executable Path
Your Minecraft installation can run into issues if the launcher fails to detect the correct Java file. While Minecraft Launcher automatically installs the required JRE version, at times, you may need to manually change the executable to run the modified version of the game.
To change the Java executable for Minecraft:


C:\Program Files (x86)\Java\jre1.8.0_361\bin 
5. Reinstall Minecraft Without Deleting Saves
You can reinstall Minecraft to fix issues with the game. Depending on how you installed the game, you can uninstall Minecraft from the Settings app or delete the .minecraft Appdata folder. If you prefer, you can also choose to keep your Minecraft saves.
To backup Minecraft saves and uninstall the game:
%appdata%\ 

C:\Users\[Username]\AppData\Roaming\.minecraft
6. Perform Generic Windows and Java Fixes
If Minecraft is still plagued by the "exit code: 1" error, here are some more general fixes you can try.
Update the Graphics Drivers
Incompatible or outdated graphics drivers can cause games on Windows computers to malfunction. For a dedicated GPU, you can use AMD Radeon Software or Nvidia GeForce Experience to install the latest graphics drivers updates on Windows.
Intel users can download newer updates from the Windows update page. To do this, press Win + I to open Settings. Open Windows Updates and install any update available for your Intel graphics. Alternatively, check Intel’s website for newer display drivers for Windows.
Reinstall Java

The "exit code: 1" error often hints at invalid Java runtime configuration issues. You can reinstall Java to fix configuration issues fixed in the latest release.
To reinstall Java Runtime Environment:
Fixing the Minecraft Exit Code: 1 Error
Many things can go wrong and trigger the "exit Code: 1 error" in Minecraft. To resolve the issue, try to disable mods and change the Minecraft Launcher path. If the issue persists, check your graphics driver for the problem.
If all else fails, perform a reinstall. You can reinstall Minecraft while keeping saves. If you are using the latest Microsoft Store version of the game, you can also uninstall it from the settings app.
ncG1vNJzZmivp6x7rq3KnqysnZ%2Bbe6S7zGikoqaVmL%2BistNmnLGhpGKwsLDEZmhmr5mjsbDD0mg%3D