Javascript required
Skip to content Skip to sidebar Skip to footer

Java 8 and Java 11 Error a Jni Error Has Occurred Please Check Your Installation and Try Again

Some Minecraft users are seeing an error whenever they try to launch the client (the game) or the server (.jar). The fault message that comes upwardly is: "A JNI error has occurred, please cheque your installation and effort again". This problem is by and large reported to occur with version Minecraft version 21w19a and newer and it's confirmed to appear on Windows 7, Windows 8.i, Windows 10, and Windows 11.

JNI error has occurred in Minecraft

As it turns out, at that place are multiple causes that might trigger this mistake when certain users effort to launch Minecraft and almost each of them is related to the Coffee installation.

Here's a list of possible culprits that are most likely responsible for causing the "A JNI error has occurred, please check your installation and attempt over again":

  • Java xvi JDK is missing – If yous get this error while attempting to launch Minecraft build 21w19 or newer, the kickoff thing you should do is bank check if the Java 16 JDK installation is missing from your PC. This is the most pop reason why this error is encountered when launching Minecraft on PC. If the Java 16 JDK is missing from your computer installation, download and install it from the official channels.
  • Broken System Path for Java – Every bit it turns out, another reason why y'all can expect to see this error is a scenario in which the system variable path for coffee is broken and tricks the Minecraft launcher into believing that Coffee is not installed on your PC when it actually is. If this scenario is applicable, you should be able to fix the outcome by removing the broken system PATH variable from the Environment variables.

Install the latest Java JDK version

In almost documented cases, this detail error happens when you attempt to launch Minecraft or a Minecraft server on a PC that doesn't have Coffee 16 or newer installed. Continue in mind that starting with Minecraft build 21w19, you will need to have Coffee's xvi JDK version installed on your PC, otherwise, the game will non launch.

To fix this result, you will simply need to update your current Java JDK to the virtually contempo version bachelor using the official channels.

If you lot're looking for step by step instructions on how to practice this, follow the guide below:

  1. Ensure that the Minecraft launcher (Tlauncher or whatever other) is completely closed before moving to the adjacent pace below.
  2. Open your default browser and visit the download page of the Java 15 Development kit.
  3. One time y'all're inside, make certain the Windows tab is selected, and so scroll all the fashion downwardly to the Windows x64 Compressed archive and click on the associate Download hyperlink.
    Downloading the x65 compressed archive of the Java xvi JDK
  4. At the confirmation prompt, check the box associated with I reviewed and accept the Oracle Engineering Network License Agreement for Oracle Java SE, then click on the Download button below.
  5. Wait until the download is complete, then unpack the zip archive with WinZip, WinRar, 7Zip or the built-in equivalent and wait for the performance to complete.
    Unzip the Coffee JDK
  6. Once the extraction process is complete, navigate to the location where y'all extracted the JDK and copy it on your clipboard by correct-clicking on it and choosing Copy from the context carte du jour.
  7. Next, employ File Explorer (My Calculator) to navigate to the following location and paste the JDK 16 folder that y'all previously copied:
    C:\Program Files\Java
  8. Expect until the copying operation is complete, then close the window and double-click on your Minecraft launcher in one case over again (TLauncher or other).
  9. Once you lot're inside the launcher, click on the settings icon, and so click on Settings from the context menu.
    Accessing the Settings bill of fare of the Minecraft launcher
  10. Inside the Settings card, ensure that the Minecraft Settings is selected at the peak, then click the Browse button associated with Java path.
  11. Next, use the scan window to navigate to the post-obit location:
    C:\Program Files\Java\jdk-16.0.ii\bin
  12. Once inside, make sure that javaw.exe is selected before clicking the Open push.
  13. Finally, click on the Salve button to successfully save the java path in your Minecraft launcher.
  14. Launch the game unremarkably and you should encounter the issue stock-still.

If the problem is yet non resolved, move down to the next potential fix below.

Remove the cleaved Organisation Path variable for Java

If the beginning method was not effective in your instance, the adjacent thing y'all should investigate is a potentially broken system variable used by Coffee.

A broken variable tin exist the determining factor in 'tricking' your Minecraft launcher into assertive that the Java JDK requirement for the game is non installed when information technology actually is.

In this instance, y'all can get the issue resolved by accessing the System Backdrop screen and modifying the Environment variables in a way that the Java PATH environs is removed.

This fix has been confirmed to be effective for a lot of Minecraft users that we're encountering the "A JNI fault has occurred, delight check your installation and try again" when attempting to launch the game from a dedicated launcher.

Follow the instructions below for a stride-by-step guide that will guide yous through the process of removing the corrupted Java JDK path variable:

Note: The instructions below should work on every recent Windows version including Windows 7, Windows 8.1, Windows 10, and Windows 11.

  1. Press Windows key + R to open up upwardly a Run dialog box. Adjacent, type 'sysdm.cpl' inside the text box and press Enter to open upwards the System Properties window.
    Open up the System Properties window

    Note: If y'all are prompted by the User Account Control prompt, click Yes to grant admin admission.

  2. Once you're finally within the System Properties window, click on the Advanced tab, then click on Environment variables(under Startup and Recovery).
    Open up System Variables card
  3. Once you're inside the Organisation Variables window, get to System Variables, then choose Path and click on Edit.
    Editing the path variable
  4. Next, once you're inside the Edit surroundings variable window, go ahead and look for an surroundings variable that mentions java.
  5. In one case you spot the culprit, click on it one time to select it, and then click Delete to get rid of it.
    Deleting the java environment variable
  6. Once the problematic environment variable has been deleted, reboot your PC, then start Minecraft again and encounter if the "A JNI error has occurred, please check your installation and try again" issue is now stock-still.

Photo of Kamil Anwar

Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over ix years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-schoolhouse yet active on FreeNode.

boaganut1963.blogspot.com

Source: https://appuals.com/a-jni-error-has-occurred-minecraft/