User Story
As a LinuxGSM user, I want minecraft server to work so that I could play on it.
Basic info
- Distro: [Ubuntu 20.04]
- Game: [Minecraft Java Edition]
- Command: [Start]
- LinuxGSM version: [v21.2.3]
Further Information
Mincraft 17 was released recently which does not run on old JREs. When attempting to start the server, the following can be seen in the console log:
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
This is when the dependencies installed as per https://linuxgsm.com/lgsm/mcserver/ where it lists default-jre. After installing openjdk-16-jre-headless the server seems to start as expected.
To Reproduce
Steps to reproduce the behaviour:
- Run
/mcserver start
- Observe the error message that the server failed to start
- Look at the error message in
cat /home/mcserver/log/console/mcserver-console.log
Expected behaviour
Minecraft server should start after /mcserver start
User Story
As a LinuxGSM user, I want minecraft server to work so that I could play on it.
Basic info
Further Information
Mincraft 17 was released recently which does not run on old JREs. When attempting to start the server, the following can be seen in the console log:
This is when the dependencies installed as per https://linuxgsm.com/lgsm/mcserver/ where it lists
default-jre. After installingopenjdk-16-jre-headlessthe server seems to start as expected.To Reproduce
Steps to reproduce the behaviour:
/mcserver startcat /home/mcserver/log/console/mcserver-console.logExpected behaviour
Minecraft server should start after
/mcserver start