Install latest JAVA 8 on Ubuntu , LinuxMint through PPA

Recently i  configured a business website hosting server with Plesk parallel panel for my client and I was using Ubuntu 14.04 LTS but there I found default java is not  install on the server . So I have written post for installation of java 8 through different methods of PPA.

In this article I am going to install java latest version 8 ( JDK 8u66 ) on ubuntu server . Here I will use JAVA PPA repository method for java install. Webupd8 Organisation  manage the PPA Repository  .

Install JAVA 8 ( JDK 8u72 ) via PPA :

Add webupd8team PPA Repository on the server and Run below command for add repo.

#sudo add-apt-repository ppa:webupd8team/java

After run the command, I have got one issue i.e add-apt-repository command not found on the ubuntu server. Here I have to install add-apt-repository command through this post . Click Here

Now Run the again above command for add repo. After that update packages.

# sudo apt-get update
# sudo apt-get install oracle-java8-installer


Oracle Java (JDK) Installer 
(automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java 
files in this PPA.


More info:
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp7l0ohs48/secring.gpg' created
gpg: keyring `/tmp/tmp7l0ohs48/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server
gpg: /tmp/tmp7l0ohs48/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

Check Install JAVA  :

Run the below command to verify java installation.

# java -version


java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)

Set  Java Environment Variables :

For set environment variable path, Webupd8 provides a package to set automatic variable . Run the below command to set this.

#sudo  apt-get install oracle-java8-set-default

About Sachin Gupta

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks!

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *