A JNI error occurred - how to fix

This article will show you how to fix the JNI error as seen below which only occurs for the newer versions of Minecraft.

Difficulty: Easy

The error message:

[Pterodactyl Daemon]: Finished pulling Docker container image
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
:/home/container$ java -Xms128M -Xmx1024M -jar server.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
[email protected]~ Server marked as offline...

[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 1
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.

How to fix it: 
1. Log into your Game Hosting Panel, you can click here for the link to the panel.
2. Find your server on the server list.
3. Navigate to the "Startup" page on the navigation bar.
4. Under the "Docker Image" header, select the "quay.io/parkervcp/pterodactyl-images:debian_openjdk-16" option.
5. Go back to the console and start your server.

Additional Support: 
If you need additional assistance or have any questions or concerns, we have multiple routes of support listed below:

Knowledgebase: https://quidnode.com/knowledgebase
Support Ticket: https://quidnode.com/ticket
Email Support: [email protected]

Search Tags:
Minecraft, JNI Error
  • Minecraft, JNI Error
  • 0 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution