How to Install openjdk-8-jdk-headless in Ubuntu 18.04



Install openjdk-8-jdk-headless by entering the following commands in the terminal:

sudo apt update
sudo apt install openjdk-8-jdk-headless

Description:

OpenJDK Development Kit (JDK) (headless)

OpenJDK is a development environment for building applications, applets, and components using the Java programming language. . The packages are built using the IcedTea build support and patches from the IcedTea project.

Homepage: http://openjdk.java.net/

Version: 8u162-b12-1

Section: universe/java