Why does this “a JNI error has occurred” error occur? Here are possible reasons: This issue mainly occurs in Minecraft version 21w19a and newer. 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”. Solution 2: Remove Broken System Path Variables for Java.Solution 1: Install the Latest Java Version.
If you also encounter this issue, then you can refer to the solutions provided in this article from MiniTool Partition Wizard. Some Minecraft users see the “a JNI error has occurred” error when trying to start the client (game) or server (.jar).