java jdk 1.8 install in ubuntu code example Example: java 8 install ubuntu sudo apt-get install openjdk-8-jdk