Install latest JAVA 8 on Ubuntu , LinuxMint through PPA
March 13, 2016
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 java is not install on the server . So i have write post for installation of java 8 through different method 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 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 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: https://launchpad.net/~webupd8team/+archive/ubuntu/java 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 keyserver.ubuntu.com 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) OK
Check Install 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 install oracle-java8-set-default