Minecraft is a world-building game with limitless possibilities. But like playing any other game, the possibility of game crashes exists for Minecraft as well (unless we find an enchanted PC!).
If your Minecraft is crashing and you’re seeing the screen ‘Error Game Crashed. Exit Code: 0’ then we have some methods that you can apply to fix this error on your Windows PC. Some of these methods also apply to Mac and Linux computers.
What Causes Exit Code 0 Minecraft Error?
- Incompatible programs running alongside Minecraft
- Outdated or problematic graphics drivers
- Conflicting Minecraft mods
- Corrupted game files
- Incompatible config files
- A compatibility issue with Nvidia GeForce Experience or Adrenalin
- Outdated Java JDK program
- Missing Java JRE application
- Low disk space
- Corrupted FML file and Minecraft cache files
- Corrupted system files
Solutions for the Minecraft Exit Code 0 Game Crashed Error
Minecraft Exit Codes are names of different Minecraft game crash errors. Below are the fixes for the Minecraft Exit Code 0 error.
- Close Conflicting Programs to Fix the Issue
- Update Your Graphics Driver
- Remove Minecraft Mods
- Update the Java JDK Software Version
- Delete the Forge Mod Loader File from Minecraft Folder
- Remove All the Files in the Configs Folder (Delete Cache)
- Run Minecraft in the Compatibility Mode
- Close Nvidia GeForce Experience or Adrenalin
- Increase RAM Allocation for Minecraft
- Make Sure Your Hard Drive Have Enough Free Space
- Reinstall Runtime Libraries for Solving the Problem
- Run Minecraft in a Clean Boot
- Install Java JRE on Your Computer
- Reinstall Minecraft
- Check Your System for Errors
1. Close Conflicting Programs to Fix the Issue
If your Minecraft keeps crashing Exit Code 0, the first thing you should check is if you’re not running programs that are known to interrupt Minecraft. Thanks to the active Minecraft community, there is a list of common programs that conflict with Minecraft.
This list is updated once the community finds any new program that interrupts Minecraft gameplay. Make sure you aren’t running any of these programs. If you are, uninstall them, and try running Minecraft again.
2. Update Your Graphics Driver
Whenever there is anything related to game crashes, we will be forced to check the graphic card settings and see if it’s working fine. Most graphics cards and GPUs work seamlessly providing excellent graphics, but sometimes, outdated drivers fiddle with games and cause unexpected crashes. So, if your Minecraft exited with code 0, check your graphics drivers for updates.
- Open the Start menu, type ‘Device Manager’, and choose the app.
- Double-click ‘Display adapters’, right-click your graphics device, and select ‘Update drivers’.
- Choose ‘Search automatically for drivers’.
- It will look for updates. If found, the drivers will be updated.
In case the wizard doesn’t find an update, check for graphics driver updates from the Windows Update tool.
- Open the Start menu, type ‘Updater’, and choose ‘Check for updates’.
- Click ‘Check for updates’.
- Once it’s done updating, restart your computer.
- After the restart, check for updates again.
- Once the check is done, select ‘View optional updates’.
- Double click ‘Driver updates’, checkmark any update related to your graphics card, and then click ‘Download and install’.
3. Remove Minecraft Mods
We all love mods in Minecraft. They let us do things that are impossible or very hard to do without them. But unfortunate news is that some Minecraft crashes are due to these mods.
This is because some mods are incompatible with the game and they can continuously cause lags or crashes. To know if your Minecraft Java Exit Code 0 error is due to mods, you have to delete the mods after searching which ones are crashing the game.
Keep a backup copy of the mods in another folder before deleting them so you can paste them back if mods aren’t the culprit.
Before doing this, make sure you can view hidden files and folders on your Windows computer.
- Open the Start menu, type ‘folder options’, and select ‘File Explorer Options’.
- Navigate to the ‘View’ tab.
- Click ‘Show hidden files, folders, and drives’.
Searching the Faulty Mod
To search the conflicting mod, you should navigate to the Minecraft Launcher logs file in the Minecraft cache folder. Skip this if you’re in a hurry and want to delete all the mods.
- To access the Minecraft logs folder, go to Local Disk C > Users > your user account > AppData > Roaming > .minecraft > logs
- Open the file ‘latest’. It will be opened in Notepad.
- Press CTRL + F, type ‘Exit Code 0’ and hit enter.
- You’ll see which mod is causing the exit code 0. Uninstall that mod.
Delete All the Mods
If you don’t find any mods or if the above process is confusing, delete all the mods. For users, who are seeing Exit Code 0 Minecraft Forge, you should delete this mods installer as well along with OceanBlock Minecraft and other mods.
4. Update the Java JDK Software Version
Java JDK is essential for running Minecraft Java on Windows, Mac, and Linux. In case Java is out of data or isn’t set up properly, you might experience game crashes.
To update Java JDK, firstly, get the latest update of Java. For this, open your web browser and search on Google ‘Java JDK latest download Oracle’. Make sure to open the links only from Oracle because that’s the developer of Java.
After getting and installing Java JDK, follow these steps:
- Open Minecraft Launcher.
- Go to the ‘Installation’ Tab
- Select the three dots next to the Minecraft release and select ‘Edit’.
- Click ‘More options’.
- Under ‘Java Executable’, choose ‘Browse’, and select your Java file. Go to C > Program File > Java > [Java version] > bin > javaw
- Select ‘Save’.
- Launch Minecraft.
A small mistake in this can cause more problems. So, if you’re not sure about the process, try other methods on the list.
5. Delete the Forge Mod Loader File from Minecraft Folder
Minecraft Forge is a popular mod installer and loader for Minecraft. Many times, its files are corrupted or antiviruses block them. This causes Minecraft Forge to crash with Exit Code 0. To know if this is the reason for your Minecraft problem, uninstall it.
Now, if you browse around, you’ll notice that it is difficult to uninstall Forge as you can’t simply go to apps in settings and uninstall it. To know how to uninstall Minecraft Forge, duplicate the below steps:
- Open File Explorer on Windows and go to C > Users > your user account > AppData > Roaming > .minecraft > configs
- In the ‘configs’ folder, find the ‘FML’ file.
- Once you find it, right-click the file, and delete it.
- Go to your Desktop and empty the Recycle Bin.
- Restart your computer and run Minecraft.
6. Remove All the Files in the Configs Folder (Delete Cache)
In the above method, we only deleted the FML file as the Forge file gets corrupted frequently. But if you’re still experiencing the Minecraft Java crash Exit Code 0 error, delete all the cache files of Minecraft.
Any of the files could be corrupted and deleting each one and checking would take time, so deleting all the files in the folder is an easier method.
- Navigate to C > Users > your user account > AppData > Roaming > .minecraft > configs
- After opening the ‘configs’ folder, select all the files, press right-click, and select ‘Delete’.
- Go to Recycle Bin and delete the files from there as well.
- Restart your computer.
7. Run Minecraft in the Compatibility Mode
What is the compatibility mode? With this mode, you can run a program on older Windows versions. This is helpful if you’re running a program that doesn’t run or crashes on your newer Windows version. With this, you can run the program on the version it’s suited for.
To fix the Minecraft Exit Code 0 Java Edition, run Minecraft in compatibility mode and set it to run on Windows 10, 8, or 7. Find the steps below:
- On your desktop, right-click ‘Minecraft Launcher’, and choose ‘Properties’.
- Go to the ‘Compatibility’ tab.
- Checkmark ‘Run this program in compatibility mode for’.
- This will activate the drop-down menu below it. Click the menu and choose the Windows version you want Minecraft to run on. For example; choose Windows 7.
- Select Apply and OK.
You can also make the process smoother by clicking the ‘Run compatibility troubleshooter’ button and following the instructions.
8. Close Nvidia GeForce Experience or Adrenalin
Nvidia’s GeForce Experience and AMD’s Radeon Software Adrenalin are additional tools offered by these companies to make sure that your system takes full advantage of the capabilities of your GPU.
This mostly results in enhanced graphics and a bunch of awesome tools. But oftentimes, these programs force games to run on the settings they can’t run on. When this happens, the game starts crashing.
If your Minecraft Java Edition or Minecraft Forge keeps crashing, consider disabling Nvidia GeForce Experience or AMD Adrenalin on your PC. Gamers who don’t have these graphics cards or tools can proceed to the next method. Others, follow below for the steps:
- Right-click the taskbar and select ‘Task Manager’.
- Navigate to the ‘Startup’ tab.
- Right-click GeForce Experience or Adrenalin and select ‘Disable’.
- Restart your computer.
You can also completely uninstall them if disabling them isn’t fixing the problem.
9. Increase RAM Allocation for Minecraft
The minimum RAM requirement for playing any Minecraft edition is 2 GB. But it’s recommended to never play Minecraft if you have anything under 4 GB RAM to get a smoother experience. For modded Minecraft gameplay, higher RAM allocation is crucial to avoid lags and crashes.
With this in mind, a possible cause of Minecraft Exit Code 0 Mac and Windows is less RAM allocation. If you have the capacity, double the RAM for the game to see if it fixes the error.
- Open your Minecraft Launcher (Vanilla).
- Go to the ‘Installation’ tab.
- Click the three dots next to your Minecraft version and choose ‘Edit’.
- At the bottom of the window, select ‘More Options’.
- Under ‘JVM Argument’ change -Xmx1G to -Xmx?G, where ‘? ‘ is the amount of RAM you want to allocate. Replace ‘?’ with ‘4’ if you want to allocate Minecraft 4 GB of RAM.
- Choose ‘Save’ and close Minecraft.
- Now, run Minecraft.
10. Make Sure Your Hard Drive Have Enough Free Space
Low disk space on your Windows installation drive can crash any program and game. This is because due to the lower space, the game can’t save its temporary files that are necessary for its functioning. When it can’t do it, the game crashes.
If your Minecraft exited with Code 0, check your storage and free up some space.
- Open the Start menu, type ‘storage settings’, and select the app.
- If the space is low, select ‘Temporary files’, and delete the files Windows recommends.
11. Reinstall Runtime Libraries for Solving the Problem
If the Microsoft Visual C++ libraries aren’t installed properly or corrupted, Minecraft might experience crashes. Try reinstalling Visual C++ to solve the issue.
- Open the Start menu, type ‘apps’, and select the application that appears.
- In the search box, type ‘Microsoft Visual C++’. Note the full name of the program.
- Select the app and click ‘Uninstall’.
- After uninstallation, visit Microsoft to get the latest Microsoft Visual C++ program.
- We noticed the name while uninstalling it. So, search for that. If you want to experiment with any newer version, go ahead. In case that doesn’t work out, install the version that was on your system before.
12. Run Minecraft in a Clean Boot
Windows allows you to run programs in a clean boot when an application is not running properly. A clean boot runs only with essential programs and processes. This makes it easy to troubleshoot things. To solve MC crash problems, try running it in a clean boot. Follow below:
- Open Start menu, type msconfig, and select ‘System Configuration’.
- Switch to the ‘Services’ tab.
- Checkmark the box ‘Hide all Microsoft services’ and then select ‘Disable all’.
- Now manually checkmark your graphics card such as Nvidia, Realtek, or AMD to enable it.
- Click Apply and OK.
- Right-click the taskbar and choose ‘Task Manager’.
- Navigate to the ‘Startup’ tab.
- Right-click each program and select ‘Disable’. Only leave out Minecraft and graphics driver programs.
- Restart your computer.
- Run Minecraft.
13. Install Java JRE on Your Computer
The Java JRE (Java Runtime Environment) is not needed for running the Minecraft standard/Vanilla version as it runs on Java JDK smoothly. However, if you like to use Minecraft mods, here’s some news.
Many mods for Minecraft need Java JRE to run properly. When JRE isn’t installed on your system, you might experience Minecraft crashes with Error Code 0 and you would wonder why is my modded Minecraft crashing. To fix it, get Java from its official website. After the installation, restart your system and try running Minecraft.
14. Reinstall Minecraft
If the above methods have failed for you, your Minecraft installation has an undetectable error. We can’t spot the error so you can perform a complete reinstallation of Minecraft. Whatever the issue is, it may be fixed automatically with a fresh install.
We know, if you’ve been playing Minecraft for some time, you would have your saved progress and would hesitate to reinstall Minecraft. Fortunately, you can easily back up your saved worlds on Minecraft and then reinstall it.
Find the below steps to save your date and perform a reinstall of Minecraft:
- Go to C > Users > your user account > AppData > Roaming > .minecraft >
- Copy the ‘Saves’ folder and paste it into another folder.
- After this, delete the text file ‘Options’ from the ‘.minecraft’ folder.
- Open Start menu, type ‘Minecraft’, and select ‘Uninstall Minecraft’.
- Once it’s done, open the ‘.minecraft’ folder again, and delete the whole folder if it’s still there.
15. Check Your System for Errors
By now we only discussed things that could be wrong with Minecraft. But if you have tried all the above methods and are still seeing the Exit Code 0 error, your Windows system files might be corrupted.
We will run SFC (System File Checker) scan and DISM (Deployment Image Servicing and Management) scan for scanning and repairing/replacing corrupted files:
- Make sure Minecraft and all the programs are closed.
- Open Start menu, type cmd, and select ‘Run as administrator’.
- Copy-paste DISM.exe /Online /Cleanup-image /Restorehealth on the command prompt and press enter.
- Once it’s completed, type sfc /scannow, and hit enter. It will take time to scan and fix files.
- When it’s done, restart your computer and run Minecraft.
The most common reason for the Minecraft Exit Code 0 error is conflicting programs. However, make sure you follow the instructions for each fix to see if it works for you. Good luck!
How do you fix Exit Code 0 in Minecraft?
To resolve the Exit Code 0 for Minecraft:
Close or uninstall conflicting programs (mostly, antiviruses)
Update graphics drivers
Delete the ‘FML’ file from Minecraft app data folder C > Users > your user account > AppData > Roaming > .minecraft
Delete the ‘configs’ folder from the Minecraft app data folder
Update Java JDK
Why do I get exit code 0 Minecraft?
If you’re getting Exit Code 0 on Minecraft, its causes could be conflicting programs, outdated graphics drivers, conflicting mods, outdated Java JDK, and corrupted Minecraft app data.
How do I fix Minecraft from crashing?
To fix Minecraft from crashing, update your operating system, drivers, and programs. After this, delete the mods. Then, go to C > Users > your user account > AppData > Roaming > .minecraft and delete the ‘configs’ folder.
How do you fix Minecraft crashing 0 Exit Code on Chromebook?
To fix the Minecraft crashing problem on Chromebook:
Delete all the Minecraft mods
Update your operating system and other programs
Close conflicting programs