mojira.dev
MC-228147

I cannot launch server.jar

On Raspberry Pi 4, i've tried to start 1.17 Java server (server.jar file). When i typed command

java Xmx1024M Xms1024M jar server.jar nogui

terminal listed this error:

Error: LinkageError occurred while loading main class net.minecraft.server.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 55.0

I've double-checked if update is available and reinstalled JDK, but didn't work

On Windows 10, i just double clicked on server.jar. Two error windows showed up. (Screenshots in attachment)

Double-checked if update is available and Java reinstalled too, but didn't work.

Environment

1st: Raspberry Pi 4, 8 GB RAM, Raspberry Pi OS, Java version: OpenJDK 11.0.11
2nd: HP Compaq 8200 Elite CMT
OS: Windows 10 Pro 2004 64-bit
CPU: Intel Core i7 2600
RAM: 8GB
GPU: Nvidia GeForce GTX 1050 Ti 4 GB
Java version: Oracle Java(TM) 1.8.0_291

Linked issues

Attachments

Comments 3

I had this issue and fixed it by installing java 16

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

migrated

(Unassigned)

Unconfirmed

1.17

Retrieved