MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.88k stars 497 forks source link

Jre-17-headless incompatible with PaperMC 1.21 #7163

Open osakaruhub opened 3 months ago

osakaruhub commented 3 months ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. sudo dietpi-software install 181
  2. systemctl start papermc.service

logs: journalctl -u papermc

Expected behaviour

PaperMC is running as expected after starting

Actual behaviour

PaperMC daemon stopped for UnsupportedClassVersionError

Extra details

from #4505 it already mentioned that the new upcoming releases will be needing newer versions of java. the installation of PaperMC includes the 1.21 version needing java 21, while dietpi installs the latest stable debian version (17) as mentioned here: curl -sSfL https://papermc.io/api/v2/projects/paper/versions/1.21/builds/81/downloads/paper-1.21-81.jar -o paper-1.21-81.jar

The Options could be

MichaIng commented 3 months ago

Thanks for the hint. I have no time to take care of support for different Java versions, and also would not do it for a single software title only. For now, easier is to install the lastest compatible version of PaperMC. Paper v1.17 requires Java 17, which is supported on Bullseye and Bookworm already.

Paper v1.20.y still supports Java 17, right? I mix up Paper versions and Minecraft versions 😄. EDIT: https://docs.papermc.io/paper/getting-started Okay, indeed v1.16.y is needed, v1.17.y requires Java 21 already.