Skip to content

[BUG] mincraft java edition instructions need to be update to reflect the new jre requirements on ubuntu #3479

@AndrewSav

Description

@AndrewSav

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:

  1. Run /mcserver start
  2. Observe the error message that the server failed to start
  3. Look at the error message in cat /home/mcserver/log/console/mcserver-console.log

Expected behaviour

Minecraft server should start after /mcserver start

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions