DEV Community

Mim Ahmed for AWS Community Builders

Posted on

Install Java 11 on Amazon Linux 2

First SSH Your Linux Machine

SSH EC2

Run the yum update command. Optionally, you can add the --security flag to apply only security updates

Command: sudo yum update

yum update

In order to install java 11:

sudo amazon-linux-extras install java-openjdk11

Java Install

Type "Y" for install packages

Y

Package installation

Wait until all packages finished install

Finished Install

Check Java Instillation

Command: java -version

Java Check

Top comments (0)