Minecraft “JNI Error” or “Java Exception” after Update 1.17? Here is a fix

New updates are added at the bottom of this story …….

The original story (published June 09, 2021) follows:

Minecraft gamers are finally getting their hands on the latest update 1.17 Caves and Cliffs: Part 1 which brings three new mobs – goats, luminous squids, and axolotls among many other additions.

Of course, it’s a massive update that gamers have been eagerly awaiting for weeks, and now that it’s here, gamers around the world are checking out the new update to see what it has to offer.

Unfortunately, it looks like the new update is off to a bad start. Some people who have installed Minecraft 1.17 report that they get an error message saying “A JNI error has occurred, please check your installation and try again” or “Java exception”.

We’ve shared a few unhappy user reports below for reference:


When I try to play 1.17-rc1 or snapshots it gives 2 errors. Error 1: A JNI error has occurred, please check your installation and try again. Error2: A Java exception has occurred (Source)

Is the server file still working? I’m still getting the error code: A JNI error has occurred, please check your installation and try again. (Source)

I installed the files from the Minecraft 1.17 server but they give me a JNI error, maybe it is the launcher? (Source)

According to gamers, they are not able to install and play Minecraft 1.17 because they keep getting “JNI Error” or “Java Exception” error.

The players even confirmed that Java is installed on their computer, but the error persists.

Naturally, this left many players scrambling to find a solution. If you are one of them, well, there is nothing to worry about.

The “JNI error” that started appearing with the latest Minecraft 1.17 update can be fixed by installing Java 16, as confirmed by numerous reports from gamers experiencing the issue.



Minecraft 1.17 requires Java 16 or later to run, so the game will not run on computers that don’t meet the requirements.

That said, in case you need a video guide to help you resolve the issue, we’ve shared one below.

Once you have installed Java 16 on your computer, you should be able to play the Minecraft 1.17 update without worrying about experiencing the “JNI error”.

Please feel free to leave a comment to let us know whether or not this fixed the problem for you.

Update 1 (June 10)

Passing through the bug page for “A JNI error has occurred, please check your installation and try again” to Mojang support, here is something you need to know:

This error occurs when you launch the client (the game) or the server (the .jar) without Java 16 in 21w19 and above. Minecraft has been updated to use Java 16 per changelog 21w19a:

Minecraft now uses a newer version of Java. If you are using a default configuration, the launcher will download and install the correct version. If you are using a custom Java configuration or a third-party launcher, you will need to ensure that your Java installation is version 16 or higher.

And here is how you can fix the problem:

To resolve this issue, download the AdoptOpenJDK and follow the steps below for the client or server.

Client: Make sure your launcher is running Java 16. To do this, change the runtime of the Java executable to target “javaw.exe” in C: Program Files Java jdk-16.0.1 bin javaw. exe or where you have Java 16 installed. Contact those responsible for your launcher if you cannot upgrade or don’t know how to upgrade to Java 16.

Server: If you are running a server on your computer, make sure that AdoptOpenJDK is running the .jar. To make sure on Windows 10, the file properties should look like this:

Try to uninstall Java 8 and restart your computer to make sure you are running Java 16. If you are running a server with a host, contact the host.

If none if it works, please contact Community support.

Update 2 (June 11)

From user reports, those of you facing the problem in Linux, here is a Trick for you:



sudo apt-get update


sudo apt search jdk

“find openjdk version 17” OR just do this command

sudo apt install openjdk-17-jdk

enjoy the new update 1.17 yall

In case openjdk-17-jdk does not appear by entering “sudo apt search jdk” and entering sudo apt install openjdk-17-jdk, it says “Unable to locate package openjdk-17-jdk”, you will need to add another repository first. This is how a user put he:

sudo add-apt-repository ppa: linuxuprising / java

sudo apt-get update

Optional: sudo apt search jdk

I found openjdk-16-jdk so I installed it; I haven’t seen openjdk-17-jdk, but 16 works

sudo apt install openjdk-16-jdk

Update 3 (June 18)

An individual has Highlighted some important information regarding the availability of Java 16 on the Mojang support website. Check out the information below:

Unlike Java 8, there is no single download provider for Java 16. Here are some of the main ones:

– OpenJDK (from Oracle): https://jdk.java.net/16/
– Oracle: https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
Oracle was historically the main supplier of Java, but their free downloads are now only for developers. Their standard versions are now paid and cost several hundred dollars a year. OpenJDK downloads are not included in this.

– Amazon Corretto (from Amazon): https://docs.aws.amazon.com/corretto/latest/corretto-16-ug/downloads-list.html
– Zulu (from Azul): https://www.azul.com/downloads/#download-openjdk
– AdoptOpenJDK (from Eclipse Foundation, sponsored by many organizations including Amazon, IBM and Microsoft): https://adoptopenjdk.net/?variant=openjdk16&jvmVariant=hotspot
I would personally recommend AdoptOpenJDK, but the choice here is yours.

PiunikaWeb started out as an investigative technology journalism website, focusing primarily on “breaking” or “exclusive” news. In no time at all, our stories were picked up by Forbes, Foxnews, Gizmodo, TechCrunch, Engadget, The Verge, Macrumors and many more. Do you want to know more about us? Head here.

Source link

About Jon Moses

Check Also

Steam Deck might not run some of the more popular games on PC, but what about the fighting game selection?

Fortunately, that seems like good news at the moment. Valve decided to jump into the …

Leave a Reply

Your email address will not be published. Required fields are marked *