mojira.dev
MC-229058

Server 1.17 - Error: A JNI error has occurred, please check your installation and try again.

This is not a duplicate of 225505 as I do not have an issue running a 1.16 server.  A 1.16 server starts up with no issues. (will provide screen shots it requested)

When I run "java -jar minecraft_server.1.17.jar" I get the following:

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(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.access$100(Unknown Source)
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

The latest version of Java is installed. See below.

If a 1.16 server runs normally, shouldn't 1.17 do the same?

Zyxian

Comments 4

To launch the minecraft 1.17 server you need java 16

It is installed.  The environment box shows it when you spin it open.

BUT - I thought I had rebooted the server after I installed JDK 16.  I just rebooted the Windows/Hyper-V server and the Minecraft server is coming up.  

Boy do I feel the fool... 

Please close this ticket.

Zyxian

Thank you for your report!
We're tracking this issue in MC-225505, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Stanley Wickham

(Unassigned)

Unconfirmed

(Unassigned)

1.17

Retrieved