In Minecraft, the “Exit Code: 1” error is a common reason behind your game’s crashing. The primary cause is often related to Java configuration issues on your computer. A message such as “Process crashed with exit code 1” may appear on your screen. However, fixing this exit code in Minecraft is generally straightforward if Minecraft is crashing repeatedly.

What Is “Exit Code 1”?

A Minecraft game crash with exit code 1 means the Java runtime configuration isn’t working correctly. This can be caused by things like outdated video drivers, mod conflicts, or even an incorrect launcher path. In some cases, you’ll see useful information provided by the error message. This may indicate some reason(s) that triggered the crash. The following tips can help you fix this error.

Table of Contents
    Minecraft block characters

    Fix 1: Reinstall Java to Fix a Minecraft “Exit Code: 1 Error

    As the exit code 1 primarily pertains to a Java configuration issue, that is the first thing to fix. Many guides will tell you to modify the Java executable path, though we recommend simply reinstalling Java completely.

    This fixes any odd configuration problems, apart from upgrading the Java version. And to be clear, when we talk about reinstalling Java, we are referring to the Java Runtime Environment (JRE).

    1. To update Java, download the latest installer from the official download page. You can also get the same from Oracle’s website.
    Java download page
    1. There are versions of Java available for Microsoft Windows, Linux, and Mac OS. Choose the correct installer for your computer, getting the 64-bit version if applicable.
    Screenshot of choosing Microsoft, Mac, or Mac version of java
    1. Run the downloaded setup file to install Java on your computer.
    Java license terms
    1. Close the setup once the installation is complete.
    A successful Java installation message.

    Fix 2: Modify the Minecraft Launcher Path

    The Minecraft game files aren’t the only component in the smooth running of the game. The Minecraft launcher is equally important and is one of the more common causes of Minecraft crashes with an “exit code 1” if it fails to connect with the exe file properly.

    A common glitch is special characters in your User ID that mess up the Launcher path, preventing it from finding the game directory. The fix requires just a small addition to the shortcut target.

    1. To edit the Minecraft Launcher’s path, right-click on its shortcut on the desktop and select Properties.
    Screenshot of opening Minecraft properties.
    1. Switch to the Shortcut tab in the Properties window.
    Editing the Minecraft target field.
    1. Select the entry of the Target field and append –workDir %ProgramData%.minecraft at the end. Make sure not to wipe out the existing text. If you do, press Ctrl + Z to restore it.
    Applying changes to Minecraft settings.
    1. Click on OK to close Properties and apply the changes.

    Fix 3: Disable Mods to Diagnose Minecraft Crashes

    Minecraft is one of the most modded games out there. While the right Minecraft mod can greatly elevate your gameplay experience, too many mods can crash the game as well.

    Mod errors such as “exit code 1” tend to be hard to diagnose, with the cumulative changes from multiple mod files triggering rare issues. This is why it’s always recommended to keep your mod list short.

    List of Minecraft mods.

    It’s a good idea to try running Minecraft without any mods whenever you’re facing any problems with the game. If things work out, you can try installing the Minecraft mods one at a time until you find the mod causing the error.

    Fix 4: Update GPU Drivers

    Driver issues are a common cause of gaming errors like “exit code 1”, and Minecraft is no exception. Updating your graphic drivers to the latest version can fix many potential bugs with the game.

    There are two main ways of updating the GPU drivers – uninstalling and reinstalling the video card in the Device Manager or finding a package manually. We recommend the second method as it optimizes your drivers for your specific hardware.

    1. To manually install the latest VGA drivers, navigate to the manufacturer’s website. Laptop brands like Acer, Lenovo, HP, etc. offer driver downloads for all of their models, while desktop users can head to Nvidia or AMD for their graphics card’s driver.
    Finding the right GPU driver on Wwindows.
    1. You’ll need the model number of your laptop (or the graphics card) to find the correct drivers. You can find this underneath the laptop or on the product box of your GPU.
    Viewing the laptop model on Wwindows.
    1. Searching the manufacturer’s website for your laptop model should bring up a list of all compatible drivers. Scroll through to find the VGA drivers, often including the name of the graphic card.
    Downloading GPU driver setup files
    1. No matter where you downloaded it from, the driver setup will be from the GPU manufacturer.
    gpu driver installation
    1. There’s no risk of getting the wrong package – the setup automatically detects if your hardware is compatible with the driver and only gives the option to proceed if everything lines up.
    selecting gpu driver setup option
    1. Once installation is complete, restart your computer.
    gpu driver installation complete message

    Fix 5: Reinstall Minecraft

    Whether the error you’re seeing is “exit code 1” or anything else, reinstalling the game tends to fix many issues. And that’s true for all video games, not just Minecraft.

    But Minecraft does not come with a convenient uninstaller to cleanly remove the game. You have to manually locate the game folder and delete it yourself.

    1. The Minecraft game folder is located in “C:\Users\UserName\AppData\Roaming\.minecraft,” where UserName should be replaced with your Windows account name. Note that the AppData folder is normally hidden, so you need to Show Hidden Files to be able to navigate to it manually.
    locating minecraft folder
    1. You can also use Run to open the game folder straightaway. Open the Run utility by searching the Start Menu and enter %appdata%\.minecraft.
    taking a minecraft backup
    1. Though our aim is to delete the Minecraft folder, take a moment to first copy the saves folder to another location on the disk. This backup will be useful to restore your progress after reinstalling Minecraft.
    deleting minecraft folder
    1. Now delete the folder and install Minecraft again from Mojang’s official website.
    Completion of Minecraft installation.

    Stop a Minecraft Exit Code: 1 Crash and Keep Playing

    There is no silver bullet that can fix every possible cause of the Minecraft 1 error code. What you need is to try multiple solutions until the game works smoothly again.

    The first step is to update things. Update Java, update the GPU drivers, and update Minecraft. That fixes a majority of problems with the game.

    If Minecraft still crashes with an exit code 1, try reinstalling the game to replace any potentially corrupted files. Make sure the launcher can find the game directory, and you shouldn’t have any issues.