Hello MineOS/Minecraft friends. I thought I would make this post to hopefully help out some folks that will be updating in the next few days. I run MineOS in a docker in unRAID. In order to get my servers running on the fancy new update, 1.18, I had to update the java version in my docker. This should work for stand alone Linux OS/VM/etc (not for windows). You might have to tweak some steps a little based on your setup.
From the CLI:
apt remove java-common
Go to JDK 17.0.1 GA Release and download the linux package. You can also use something like wget in the CLI. Transfer the downloaded file to your MineOS. In my case, I dropped it in /var/games/minecraft.
mv /var/games/minecraft/openjdk-17.0.1_linux-x64_bin.tar.gz /tmp/openjdk-17.0.1_linux-x64_bin.tar.gz
cd /tmp
tar -xf openjdk-17.0.1_linux-x64_bin.tar.gz -C /opt/
ln -s /opt/jdk-17.0.1/bin/java /usr/bin/java
Then I was able to start my Minecraft 1.18 worlds successfully. Hope this save some people time and pain.
Hello, I am trying to follow the steps, but when I get to the last one it gives me an error. It says âln: failed to create symbolic link â/usr/bin/javaâ: Files existsâ. To me, this sounds like there is already a java installed? When I run the line to remove the previous java it states that java-common is not installed, so not removed. Do you have any idea why this would do this? Iâm very new to Linux, so I donât exactly know what most of this means. Iâve been trying to solve this for hours now with no luck.
Thank you so much for this information. I am completely linux illiterate but was able to use your post and another about upgrading to JDK 16 to do this from the command line using wget (first time ever) for those in a similar situation, here is how to do it from the CLI:
Hello, the first step tells me that the command (apt remove java-common) does not work. Then the second step seems to go perfectly. But the last two steps donât work either. I am a beginner, can you help me please?
thanks in advance
I got an error for the first command as well; perhaps someone more experienced can provide input - Iâm inexperienced as well. It might be helpful to post any response you get when trying to install the new version.
Yeah thank you. 1.17.1 silently asked for a java update too⊠thanks for the procedure refresher. BTW if you are using docker you may want to commit the change to your image too. docker commit your_container_name.
I am a noob to this, I have updated Java using the method above, updated node.js and npm but the webui is not working at all. I can ping the server, I can also putty into the server, but I am lostâŠ
Hi!
Using Turnkey trying to install Java 17 from command line logged in as mc
When I run the tar step I get:
tar: You may not specify more than one â-Acdtruxâ, ââdeleteâ or ââtest-labelâ optionâŠ