6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (2024)

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.

  1. Press Win + R and type the following in the Run dialog:
    %appdata%\ 
  2. Click OK to open the AppData\Roaming folder in File Explorer.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (1)
  3. Next, open the .minecraft folder.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (2)
  4. Open the mods folder inside the .minecraft folder.
  5. Select and right-click on all the mods one by one and select Delete.

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:

  1. Press Win + I to open Windows.
  2. Open the Apps tab in the left pane.
  3. Click on Installed Apps and search Minecraft Launcher.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (3)
  4. Next, click the three-dots menu beside the app name and select Advanced Options.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (4)
  5. Scroll down to the Reset section and click Repair. Windows will perform a quick repair and show a checkmark once the repair is complete.
  6. Relaunch Minecraft Launcher and check for any improvements.

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

6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (5)

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:

  1. Right-click on the Minecraft Launcher shortcut and select Properties.
  2. In the Properties dialog, open the Shortcut pat.
  3. In the Target field, add the following line to change the working directory for Minecraft Launcher. You need to add the below lines after the existing file path:
    –workDir %ProgramData%.minecraft 
  4. After modifications, the target field will look something like this:
    "C:\ProgramFiles (x86)\MinecraftLauncher\MinecraftLauncher.exe" –workDir %ProgramData%.minecraft 
  5. Click Apply and OK to save the changes.
  6. Relaunch Minecraft and check for any improvements.

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:

  1. Open the Minecraft Launcher.
  2. Next, select the Minecraft Java Edition tab in the left pane.
  3. Open the Installations tab in the toolbar.
  4. Hover your mouse over Latest Release and click the three-dots menu.
  5. Select Edit from the menu.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (6)
  1. Click More Options to view additional options.
  2. Click Browse to add a Java Executable.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (7)
  3. Navigate to your Java installation. By default, the JRE file path is:
    C:\ProgramFiles (x86)\Java\jre1.8.0_361\bin 
  4. Select the Java.exe file and click Open.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (8)
  5. Click Save to apply the changes and relaunch Minecraft Launcher.
  6. The caveat here is you’ll need to update the Java version number or re-add the Java executable every time you update Java.

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:

  1. Press Win + R to open the Run dialog.
  2. Paste the following in the Run field and click OK:
    %appdata%\ 
  3. Open the .minecraft folder.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (9)
  4. Right-click on the saves folder and select Copy (Ctrl +C).
  5. Paste the saves folder outside the .minecraft folder.
    6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (10)
  6. Next, return to the Roaming folder and delete the .minecraft folder to uninstall the game.
  7. Restart your computer.
  8. To reinstall Minecraft, open Minecraft Launcher. It will start the installation process.
  9. Follow the on-screen instructions to complete the process and sign in with your Minecraft account.
  10. Next, move the saves folder back to the following location:
    C:\Users\[Username]\AppData\Roaming\.minecraft
  11. Relaunch Minecraft to check if the error is resolved.

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

6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (11)

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:

  1. Go to the Java download page.
  2. Select the correct version for your Windows computer. You can opt for the Windows Online or Offline version. Also, download the 64-bit version if applicable.
  3. Run the installer and follow the on-screen instructions to complete installations.
  4. Once installed, restart your computer and check for any improvements.

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.

6 Ways to Fix Minecraft's "Exit Code: 1" on Windows (2024)
Top Articles
Latest Posts
Article information

Author: Dong Thiel

Last Updated:

Views: 6303

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.