install oracle jdk ubuntu command line code example Example: install java ubuntu sudo apt install default-jre