Install latest JAVA 8 on Ubuntu , LinuxMint through PPA

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

In this article i am going to 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  .

JAVA 8 ( JDK 8u72 ) via PPA :

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

#sudo  ppa:webupd8team/java

After run the command , i have got one issue i.e command not found on the ubuntu server. Here i have 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  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 JAVA  :

Run 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 provide package to set automatic  varible . Run below command to set this .

#sudo  apt-get  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.