First SSH Your Linux Machine
Run the yum update command. Optionally, you can add the --security flag to apply only security updates
Command: sudo yum update
In order to install java 11:
sudo amazon-linux-extras install java-openjdk11
Type "Y" for install packages
Wait until all packages finished install
Check Java Instillation
Command: java -version
Top comments (0)