$ sudo apt-get update && sudo apt-get upgrade
## 11
$ sudo apt-get install -y openjdk-11-jdk
## 17
$ sudo apt-get install -y openjdk-17-jdk
$ java -version
java 17.0.9 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)
$ sudo apt-get purge openjdk*
$ javac -version
https://docs.aws.amazon.com/ko_kr/corretto/latest/corretto-11-ug/amazon-linux-install.html
$ sudo yum update && sudo yum upgrade
## jdk 11
sudo yum install java-11-amazon-corretto
## headless - GUI x, 좀더 가벼움
sudo yum install java-11-amazon-corretto-headless
$ java -version
sudo yum remove java-11-amazon-corretto