Install Open JDK (Ubuntu)

For version 8 (recommended for Java EE 8) specifically:

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

Leave a Reply