Using Ubuntu
apt-get -y update
Wait a while, this process may take 1-2 minutes. When finished, a prompt appears to enter commands on behalf of the user.

Use universal command to install OpenJDK 8
sudo apt install -y openjdk-8-jdk
Waiting for all files to be downloaded and installed.

Debian usage
apt install apt-transport-https gnupg wget software-properties-common -y
We’re adding a repository.
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt-get update
Installing OpenJDK 8.
apt-get install adoptopenjdk-8-hotspot -y
Last updated