Error: a JNI error has occurred, please check your installation and try again.

Here’s what to do when you see “JNI error has occurred” in Minecraft.

What Causes the JNI Error in Minecraft?

JNI errors, or Java Native Interface errors, occur when there’s a conflict between your version of Minecraft and your computer’s Java libraries. This usually boils down to a couple of possible issues:

Your version of Java is out-of-dateThe installation file path for Java is corrupted

Since all new versions of Java are backward compatible, updating to the latest version should allow you to run any Java version of Minecraft.

How to Fix a JNI Error in Minecraft

Try these steps in order until Minecraft starts up as normal: Then, enter the installation command replacing the number “18” with the latest version number for Java: When the update is successful, try starting Minecraft again. When you get to the Edit System Variables screen, choose any path files that include “Java” and select Delete. Reinstall Java and restart your computer, then try opening Minecraft again.