MinecraftServerControl / mscs

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

Minecraft Version 1.20.6 Requires at least JDK 21 #342

Open TimeTravelerFromNow opened 4 months ago

TimeTravelerFromNow commented 4 months ago

Minecraft 1.20.6 depends on JDK 21

Which is not in the package manager for debian I found a solution and wrote a guide on my website

Since Minecraft 1.20.6 came out just a few days ago, I dont know how many of you updated your servers.

I spent a few hours troubleshooting and solving by the problem by installing JDK 22. (JDK 21 already superceded).

Steps to Install

  1. Navigate in your server to the directory where you want this JDK installation to live
  2. use wget to download the jdk-package.tar.gz to the server
  3. unzip with tar xvzf the downloaded jdk-package.tar.gz
  4. export to the $PATH variable
  5. edit to add the variables to ~/.bashrc file
  6. Should be good now, (Disclaimer: I do not know if this breaks other programs that depend on older JDK such as old minecraft servers)