Java install on Ubuntu. Do not install Java 10 or 11:
sudo apt install openjdk-8-jdk