Thursday, October 27, 2022

[SOLVED] AWS - How to install java11 on an EC2 Linux machine?

Issue

I tried this

Downloading Java JDK on Linux via wget is shown license page instead

but I keep getting a 404 error.

This command "sudo amazon-linux-extras install java-openjdk11" just states that amazon-linux-extras doesnt exist.


Solution

Use one of the OpenJDK distributions:

https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html

or

https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot



Answered By - Mark Phippard
Answer Checked By - Clifford M. (WPSolving Volunteer)