Can't start a server that is version 1.20.5 or up

Hi, I can’t seem to start a server that is version 1.20.5 or up. I’ve tried to start a server that is 1.19, and 1.20 to 1.20.5. I can start every server that is on version 1.20.4 and under. What may be the problem? I have mineos installed on a truenas server and use java 17. In the mineos log, I get this message: 2024-06-13 16:44:39.764156+00:002024-06-13 16:44:39,763 INFO reaped unknown pid 606

2 Likes

Me either. Anyone know why?

1.20.5+ needs an updated Java

https://www.minecraft.net/en-us/article/minecraft-java-edition-1-20-5
The game now requires Java 21

Regards

I had this issue too and i have just got it to work. I’m a linux noob and i have no idea what i’m really talking about so i have no idea if i did something wrong or made my os unstable or anything so follow it at your own risk.

I have mostly followed this guide

the first thing i did was update the packages

sudo apt update
sudo apt upgrade

then on the oracle website i downloaded the x64 Compressed Archive like they said in the guide. i have seen that JDK 22 exists now but i have still downloaded JDK 21 just to follow the guide as closely as possible

then i copied the file into /tmp using FileZilla
then i ran this command. make sure to change the name and ip to your server

scp /tmp/jdk-21_linux-x64_bin.tar.gz mc@192.168.0.197:/tmp

it asked me to add this ip to the list of known hosts (no idea what this is) but i said yes.

now we navigate to the file, extract the files and move it to /usr/lib/jvm/

mc@mineos-tkldev ~$ cd /tmp
mc@mineos-tkldev /tmp$ tar -xzf jdk-21_linux-x64_bin.tar.gz
mc@mineos-tkldev /tmp$ sudo mv jdk-21.0.3 /usr/lib/jvm/oracle-jdk-21.0.3

now when i looked at the version of java it still told me i had 17.0.11.

trying to do

sudo update-alternatives --config java

told me “There is only one alternative in link group java”
also listing the content of the folder gave me this (oracle-jdk-21.0.3 is the one we just installed)
image

after that i asked chatGPT what to do and it told me to execute the following 2 commands

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/oracle-jdk-21.0.3/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/oracle-jdk-21.0.3/bin/javac 1

and after executing both i was able to select the correct version

that’s everything. i was now able to play 1.20.6 and 1.21.

How can I do this on a truanas server?

-And also, the things I’ve tried to change in the mineos pod shell won’t be saved when I restart the application.

1 Like

If anyone comes across this from a search, as of the end of 2024, Minecraft needs jdk21. This is a separate issue from MineOS.

I am running on Unraid using docker, and went into the docker console.
Started with a sudo apt update to make sure the current packages were listed.
I then did sudo apt install openjdk-21-jdk I let that install.
Confirmed java was updated by typing java -version

openjdk version "21.0.7" 2025-04-15
OpenJDK Runtime Environment (build 21.0.7+6-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 21.0.7+6-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Restarted the machine (docker)
Confirmed that any 1.20.x or higher now works without an issue.

NOTE: I have several minecraft servers that are above 1.20.x.
I did have to select the minecraft version on one of them before starting.
I also had to accept the EULA on one of them, but I am not sure if that was one that I hadnt done before while I was doing other testing to resolve this issue.

AKA take the note section with a grain of salt.