Javascript required
Skip to content Skip to sidebar Skip to footer

Terminal Error a Jni Error Has Occurred Please Check Your Installation and Try Again

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

JNI fault has occurred in Minecraft

As information technology turns out, there are multiple causes that might trigger this error when certain users try to launch Minecraft and almost each of them is related to the Java installation.

Hither's a list of possible culprits that are virtually likely responsible for causing the "A JNI fault has occurred, delight check your installation and try again":

  • Coffee 16 JDK is missing – If you get this fault while attempting to launch Minecraft build 21w19 or newer, the beginning thing y'all should do is cheque if the Coffee 16 JDK installation is missing from your PC. This is the almost popular reason why this error is encountered when launching Minecraft on PC. If the Java 16 JDK is missing from your reckoner installation, download and install it from the official channels.
  • Cleaved System Path for Coffee – As it turns out, another reason why y'all can look to see this error is a scenario in which the organization variable path for java is broken and tricks the Minecraft launcher into believing that Java is not installed on your PC when it really is. If this scenario is applicable, you lot should exist able to fix the issue by removing the broken organisation PATH variable from the Environs variables.

Install the latest Java JDK version

In about documented cases, this particular error happens when you lot attempt to launch Minecraft or a Minecraft server on a PC that doesn't have Java 16 or newer installed. Keep in mind that starting with Minecraft build 21w19, you volition demand to accept Java's xvi JDK version installed on your PC, otherwise, the game volition not launch.

To fix this issue, yous volition simply demand to update your current Java JDK to the about recent version available using the official channels.

If y'all're looking for step past pace instructions on how to do this, follow the guide below:

  1. Ensure that the Minecraft launcher (Tlauncher or any other) is completely closed before moving to the side by side step below.
  2. Open your default browser and visit the download page of the Java 15 Evolution kit.
  3. One time y'all're inside, make sure the Windows tab is selected, then scroll all the style downwardly to the Windows x64 Compressed archive and click on the associate Download hyperlink.
    Downloading the x65 compressed archive of the Java 16 JDK
  4. At the confirmation prompt, bank check the box associated with I reviewed and take the Oracle Technology Network License Agreement for Oracle Coffee SE, then click on the Download push button beneath.
  5. Wait until the download is complete, so unpack the zip archive with WinZip, WinRar, 7Zip or the built-in equivalent and wait for the operation to consummate.
    Unzip the Java JDK
  6. Once the extraction process is consummate, navigate to the location where you lot extracted the JDK and copy it on your clipboard by right-clicking on it and choosing Copy from the context menu.
  7. Next, utilise File Explorer (My Computer) to navigate to the following location and paste the JDK xvi folder that yous previously copied:
    C:\Program Files\Java
  8. Expect until the copying performance is complete, then close the window and double-click on your Minecraft launcher in one case once more (TLauncher or other).
  9. Once you're inside the launcher, click on the settings icon, then click on Settings from the context menu.
    Accessing the Settings menu of the Minecraft launcher
  10. Inside the Settings menu, ensure that the Minecraft Settings is selected at the meridian, then click the Browse button associated with Java path.
  11. Next, utilise the scan window to navigate to the following location:
    C:\Program Files\Java\jdk-16.0.two\bin
  12. One time inside, make sure that javaw.exe is selected before clicking the Open button.
  13. Finally, click on the Save button to successfully save the java path in your Minecraft launcher.
  14. Launch the game normally and you should see the issue fixed.

If the problem is withal non resolved, move downward to the adjacent potential prepare below.

Remove the cleaved System Path variable for Java

If the start method was not effective in your example, the next matter yous should investigate is a potentially broken organisation variable used by Java.

A broken variable can be the determining gene in 'tricking' your Minecraft launcher into believing that the Java JDK requirement for the game is not installed when it actually is.

In this example, you lot tin can become the issue resolved by accessing the Organisation Properties screen and modifying the Surroundings variables in a mode that the Java PATH environment is removed.

This gear up has been confirmed to be effective for a lot of Minecraft users that we're encountering the "A JNI mistake 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 footstep-past-step guide that will guide you through the procedure of removing the corrupted Coffee JDK path variable:

Notation: The instructions beneath should work on every contempo Windows version including Windows 7, Windows viii.1, Windows ten, and Windows 11.

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

    Note: If you are prompted past the User Account Control prompt, click Yeah to grant admin admission.

  2. In one case you're finally inside the System Properties window, click on the Advanced tab, then click on Surroundings variables(under Startup and Recovery).
    Open up up Organisation Variables bill of fare
  3. Once you're within the Arrangement Variables window, get to System Variables, then choose Path and click on Edit.
    Editing the path variable
  4. Next, in one case you're inside the Edit environs variable window, go alee and look for an surroundings variable that mentions coffee.
  5. One time y'all spot the culprit, click on it once to select information technology, then click Delete to get rid of information technology.
    Deleting the java environment variable
  6. Once the problematic surroundings variable has been deleted, reboot your PC, then offset Minecraft again and see if the "A JNI error has occurred, please cheque your installation and try over again" event is at present fixed.

Photo of Kamil Anwar

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

mariabeign1941.blogspot.com

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