DEV Community

Discussion on: How to Run a Minecraft Server on AWS For Less Than 3 US$ a Month

Collapse
 
mudhen459 profile image
Jonathan M. Zook

Thank you sir. From the quick research I did, I can't seem to find an option for Java above V11 for the Amazon Linux 2 OS. Hopefully your research yields better results than mine.

Thread Thread
 
julbrs profile image
Julien Bras

OK it's related to the Minecraft version, as 1.17 is now requiring Java 16 (instead of Java 8 on 1.16.5, that's a pretty big move!)

minecraft.fandom.com/wiki/Java_Edi...

I will update the article to be sure to download 1.16.5 because it seems less easy to get Java 16 on Amazon Linux 2.

Thanks !

Thread Thread
 
mudhen459 profile image
Jonathan M. Zook • Edited

Julien, I think I found the way to get a higher level of Java on Amazon Linux 2 using the Corretto library. Here are the commands:

sudo rpm --import yum.corretto.aws/corretto.key

sudo curl -L -o /etc/yum.repos.d/corretto.repo yum.corretto.aws/corretto.repo
sudo yum list available | grep java

sudo yum install -y java-17-amazon-corretto-devel.x86_64

sudo update-alternatives --config java
Select the Corretto Java 17 from the list

Thread Thread
 
julbrs profile image
Julien Bras

big thanks for digging that! I will update the article ASAP and test on my minecraft server !

Thread Thread
 
julbrs profile image
Julien Bras

done @mudhen459 thanks a lot !

Some comments have been hidden by the post's author - find out more