Install Oracle Java 7/8 on Ubuntu
How To Install Java On Ubuntu?
We will have to download the required files(PPA) to the system .To add the PPA open the terminal(Ctrl+Alt+T) and run the following command :
This requires admin rights so we will have to use sudo.
For Oracle Java 7/8:
Step 2:Next we have to update the packages.
As now we have downloaded the files , we have to update.
Use the command :
On running it asks for some permissions which you will have to grant.Run the following command :
For Oracle Java 7:
Now the Java is installed on your system.
To verify the installation , enter the command :
To automatically set up the Java 7 environment variables JAVA_HOME and PATH: