install java 8 on ubuntu 18.04 code example
Example 1: java 8 install ubuntu
sudo apt-get install openjdk-8-jdk
Example 2: how to install java 8 in ubuntu 16.04
sudo apt-get install openjdk-8-jdk
Example 3: how to install java on ubuntu 18.0.4
$ sudo apt install openjdk-11-jdk
Example 4: instalar java ubuntu 18.04
sudo apt install default-jre
Example 5: instalar java ubuntu 18.04
OutputCommand 'java' not found, but can be installed with:
apt install default-jre
apt install openjdk-11-jre-headless
apt install openjdk-8-jre-headless