install jdk and jre in ubuntu code example Example: ubuntu install jre sudo apt install openjdk-8-jre