How do you resolve a JNI error has occurred Please check your installation and try again?

  • Partition Wizard
  • Partition Manager
  • How to Fix A JNI Error Has Occurred in Minecraft [2022 Guide]

By Vega | Follow | Last Updated July 20, 2022

Some Minecraft users see the “a JNI error has occurred” error when trying to start the client (game) or server (.jar). If you also encounter this issue, then you can refer to the solutions provided in this article from MiniTool Partition Wizard.

On This Page :

Some Minecraft users see the JNI error Minecraft server message that appears when trying to start the client or server: "A JNI error has occurred, please check your installation and try again". This issue mainly occurs in Minecraft version 21w19a and newer.

Why does this “a JNI error has occurred” error occur? Here are possible reasons:

  • The version of Java is old: Previous versions of Minecraft came with server software that was compatible with older versions of Java. However, this is not the case with the latest Minecraft update, which now requires Java to get up and running properly.
  • The corrupted system path for Java: The system variable path for Java is corrupted and tricks the Minecraft launcher into thinking that Java is not actually installed on your PC.

Whatever the cause of this problem, the solutions below will help you fix it in no time.

Solution 1: Install the Latest Java Version

This a JNI error has occurred Minecraft server error occurs when you try to start Minecraft or a Minecraft server on a PC that does not have the latest version installed. To fix this, you just need to update your current Java to the latest version.

You can complete the installation of Java’s latest version of Minecraft by following these steps:

Tip: Make sure the Minecraft launcher (Tlauncher or any other) is completely closed.

Step 1: Go to the official website to download the latest version of Java. Here you need to download the installation package you need correctly. For Windows users, they may choose to download the file ending with .exe.

How do you resolve a JNI error has occurred Please check your installation and try again?

Step 2: After downloading Java, install the software on your computer. You just double-click the downloaded executable and allow the installer to make changes when asked.

Step 3: Follow the on-screen instructions to finish the installation.

After that, you can check if the “a JNI error has occurred” error still appears.

Solution 2: Remove Broken System Path Variables for Java

If the first method doesn't work, then this “a JNI error has occurred Minecraft” error is due to a corrupted system path variable for Java.

In this case, you can fix the problem by visiting the System Properties screen and modifying the environment variables in a way that removes the Java environment variables.

To do so, here is the guide:

Step 1: Press the Win + R key to open the Run dialog box. Then type sysdm.cpl in it and press Enter.

Step 2; In the System Properties window, switch to the Advanced tab, and then click on the Environment Variables button.

Step 3: Once enter the System Variables window, under the System variables section, select Path and click on the Edit button.

Step 4: In the next window, find the environment variables for Java. Then click it and click Delete.

How do you resolve a JNI error has occurred Please check your installation and try again?

After removing the offending environment variable, restart your PC, then start Minecraft again and see if the "a JNI error has occurred " issue is fixed.

Bottom Line

Two ways for fixing Minecraft server a JNI error has occurred issue. If you have any doubts about this article or have a better way to this problem, you can share it in the comment zone.

About The Author

How do you resolve a JNI error has occurred Please check your installation and try again?

Position: Columnist

Vega joined MiniTool as an editor after graduation. She enjoys helping people with computer problems, including disk management, data recovery, and more. She is constantly expanding her knowledge in related fields. And she will continue to bring more easy-to-understand professional articles to help people solve various problems on the PC.

In her daily life, Vega enjoys hanging out with friends, shopping online and listening to music. She is someone who knows how to enjoy life.

How do you fix a JNI error has occurred Please check your installation?

This a JNI error has occurred Minecraft server error occurs when you try to start Minecraft or a Minecraft server on a PC that does not have the latest version installed. To fix this, you just need to update your current Java to the latest version.

How do I get rid of JNI error?

In most cases, the JNI error can be fixed simply by updating Java on the device to match the latest release.

Why do I keep getting JNI error?

Such errors fall into the class of JNI or Java Native Interface errors. These errors usually occur when the Java files are too new or the Java version of your device is outdated. Sometimes these errors also occur when the installation path of the Java files is broken.

How do you solve a Java exception has occurred?

Usually this happens because by default in the OS if java -version is searched it might show some old JDK version, so either change global env variable's value if you have privileges to do so else e.g., in linux instead of typing only 'java' while executing, type the complete path e.g., /usr/jav/jdk1.