MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
479 stars 61 forks source link

Error starting the server: couldn't retrieve the server's process ID #305

Closed mbacalan closed 2 years ago

mbacalan commented 2 years ago

Apparently this issue is tied to using an older Java version than 16 for Minecraft version 1.17+. However, I'm still having this while I have AdoptOpenJDK 16.0.1.

console.out:

cat /opt/mscs/worlds/shny/console.out
Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
        java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0

java -version:

openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode)

Running on Raspberry Pi 4:

Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
sandain commented 2 years ago

Hi @mbacalan. Class file version 61.0 means you need to be running Java 17 at a minimum.

mbacalan commented 2 years ago

Hi @mbacalan. Class file version 61.0 means you need to be running Java 17 at a minimum.

Just realized this mistake! Thanks and sorry for wasting your time 🤦‍♂️