In Ubuntu it's a little bit of difficulty to download and install Oracle Java. There are some proprietary that will download and install Java from somewhere else and not the current version.
You may try the ways below to get the latest version of original Oracle Java.
Step 01 Type ctrl+alt+t to open terminal, then use the command line below to add repository for Oracle Java.
sudo apt-add-repository ppa:webupd8team/java
Step 02 Now update using the command line given below.
sudo apt-get update
Step 03 Finally install the installer by using the command line as given.
sudo apt-get install oracle-java8-installer
Step 04 Once you will be asked to proceed the installation, you have to select OK and later you have to select Yes.
Advertisement