Java is the widely used programming language used by billion of application. Generally every systems required Java installed there. You may also need to Install Oracle Java 8 on your Linux system. You will require the PPA maintained by Webupd8 Team to Install Oracle JAVA 8 on Your Ubuntu and Linux System.
This tutorial will help you to install Oracle JAVA 8 (JDK/JRE 8u131) on Ubuntu 17.10, 17.04, 16.04, 14.04 and 12.04 LTS and LinuxMint 18, 17 systems using PPA.
Install Oracle JAVA 8
First of all, you need to add webupd8team Java PPA repository in your system. After that install, Oracle Java 8 using following a set of commands.
add-apt-repositoryppa:webupd8team/java $ sudo apt-getupdate $ sudo apt-getinstall oracle-java8-installer
Verify Installed Java Version
After successfully installing Oracle Java using above step verify installed version using the following command.
java -versionjava version " 1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Configuring Java Environment
Also, install Java configuration package. It seems like below package is already installed with latest operating systems during installation of JAVA packages. But you can still make sure by running below command.
$ sudo apt-get
Now edit /etc/environment configuration file and add following entries to set JAVA_HOME and JRE_HOME environment variables.
Finally, You have successfully installed Java 8 on your system. In addition if you are looking for Google chrome installation visit Install Google Chrome on Ubuntu & LinuxMint