Install Oracle Java 8 on Ubuntu 6.04 Xenial
Step 1 – Prerequsities
Before beginning the installation run login shell as the sudo user and update the current packages installed.
Step 2 – Install Java 11 on Ubuntu 16.04
You need to add the following PPA to your Ubuntu system. This PPA contains a package oracle-java11-installer having the Java installation script. Then install Java 11 using the script provided in these packages. This script downloads the Java archive from the official site and configures on your system Also, install the following package to configure Java 11 as default Java version on your Ubuntu 18 system.
Step 3 – Verify Java Version
Check the installed Java version on your system using the following command. You have successfully installed Java 11 on Ubuntu 16.04 LTS system. Happy coding!