Install Open JDK

For a list of installed versions you can use the following command:

update-java-alternatives -l

To select the default version (in case you have many versions installed:

update-alternatives --config java

Ton install version 8 (recommended for Java EE 8) install via command:

sudo apt install openjdk-8-jdk

You may install any specific version with the following command (replace X with your version):

sudo apt install openjdk-X-jdk

To install the latest one use the command:

sudo apt install default-jdk

To learn more about current state of Java check these articles:

Leave a Reply