install oracle java 11 ubuntu 18.04 code example Example: apt install java 11 sudo apt-get update sudo apt-get install oracle-java11-installer-local