GameServerManagers / GameServerManagers/LinuxGSM

[Bug]: mcserver is using JRE class file version 65 but LGSM installs 61 on Deb12

Open
#4,744 1 comment 0 reactions 0 assignees View on GitHub
command: install command: start distro: Debian game: Minecraft info: dependency type: bug
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

### User story

I want to install mcserver and all its dependencies using LinuxGSM so that I can start it

### Game

Minecraft

### Linux distro

Debian 12 (minimal)

### Command

command: start

### Further information

Upon installing the dependencies from the list given by ./mcserver install, I get `[ FAIL ] Starting mcserver: Unable to start Server!`. Manually starting the minecraft server reveals the message `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 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0`

After manually installing JDK version 23.0.1 using `wget https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.deb && sudo dpkg -i ./jdk-23_linux-x64_bin.deb && rm ./jdk-23_linux-x64_bin.deb`, the server starts normally again.

There was also one package in the dependencies which seems to not exist anymore when using `apt install `, but unfortunately I do not remember that. It is not being checked for when installing the server but was in the apt install command printed out by it.

Maybe the dependency list for mcserver needs an update?

Best regards
Domml

### Relevant log output

_No response_

### Steps to reproduce

1. Have Debian 12 (I am using minimal)
2. Follow the steps from the **Install** section at [the LGSM Minecraft Server site](https://linuxgsm.com/servers/mcserver/)
3. Install the dependencies listed by the `./mcserver install` command
4. Start the server with `./mcserver start`
5. See that the server won't start because of the java version mismatch in the newest Minecraft version and Debian 12's default-jdk (Java 21 vs Java 17)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.