download openjdk 8 for ubuntu code example
Example 1: install openjdk 8 sdk on ubuntu
sudo apt-get install openjdk-8-jdk
Example 2: ubuntu install openjdk 8 source
sudo apt-get install openjdk-8-source
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-8-source