PDF download Download Article
Fix the Exit Code 1 or negative 1 in Minecraft
PDF download Download Article

Do you keep getting Error Code 1 or -1 on Minecraft? This usually happens when you have a mod version that's different from your Minecraft version. To fix this, update your mods and your graphics driver. Here's how to fix Minecraft Exit Code 1

What Is Error Code 1 in Minecraft?

Minecraft Exit Code 1 is caused by an incompatible mod with your current version of Minecraft. To fix this, update the mod to your current version. You should also update your drivers and check the Java Executable file location.

Method 1
Method 1 of 5:

Updating Your Mods

PDF download Download Article
  1. You can check this by launching Minecraft and clicking the Installations tab at the top. The version number will be underneath Latest release .
    • If you're using mods, you'll need to make sure the mod version is the same as your Minecraft version. If you have an older version of Minecraft, you'll need to make sure the mod runs the same version.
  2. 2
    Check your mod versions. Unless you changed the mod location, you should find your mods in AppData > Roaming > Minecraft.
    • Most mods will have the version listed in their name.
    Advertisement
  3. 3
    Update the mods. Head to https://www.curseforge.com/minecraft or another mod website to download the new version of the outdated mod. Once downloaded, replace the old version in the mod folder.
    • Use the search field to enter the mod's name.
    • Once you select a mod, click the Files tab to download the new version.
    • If you're using an older version of Minecraft, download the same version of the mod.
  4. 4
    Restart your computer. This will make sure your new mods are applied properly.
  5. Advertisement
Method 3
Method 3 of 5:

Fixing the Minecraft Launcher Path

PDF download Download Article
  1. 1
    Right-click the Minecraft icon and click Properties . This will be in the drop-down menu.
    • You may receive Exit Code 1 if you have special characters in your Windows username. This method will make the Minecraft launcher ignore these characters.
    • If you aren't on the Shortcut tab already, click it at the top.
  2. 2
    Click the "Target field". This is underneath Target location . Don't delete the existing path.
  3. 3
    Enter -workDir %ProgramData%.minecraft . This goes after the existing path.
  4. 4
    Click Apply , and then OK . Your changes will be saved.
    • Be sure to restart your computer before trying Minecraft again.
  5. Advertisement
Method 4
Method 4 of 5:

Changing the Java Executable File

PDF download Download Article
  1. 1
    Open the Minecraft launcher. You may receive Exit Code 1 if the launcher can't find the Java Executable file. To fix this, you can manually select the location.
  2. 2
    Click Minecraft: Java Edition . This is on the left side of the launcher.
  3. 3
    Click Installations . This is at the top.
  4. 4
    Click ••• next to "Latest release". A drop-down menu will open.
  5. 5
    Click Edit . A new page will open.
  6. 6
    Click Browse next to "Java Executable. The File Explorer will open.
  7. 7
    Select the Java.exe file. If you didn't move the file, you can find it in Program Files > Java > jre-1.8 > bin.
  8. 8
    Click Save . Once saved, close the game and open it again.
  9. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 1,261 times.

      Did this article help you?

      Advertisement