DEV Community

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

 
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