Oracle JAVA 8 Stable release has been released on Mar,18 2014 and available to download and install. Oracle Java PPA for Debian systems is being maintained by Webupd8 Team. JAVA 8 is released with many of new features and security updates, read more about whats new in Oracle Java 8. Ubuntu and LinuxMint users use below link to install Java 8 on their system.
This article will help you to Install Oracle JAVA 8 (JDK/JRE 8u111) on Debian 8/7 system using PPA.
1. Add Java 8 PPA
First you need to add webupd8team Java PPA repository in your system. Edit a new ppa file /etc/apt/sources.list.d/java-8-debian.list in text editor
$ sudo vim /etc/apt/sources.list.d/java-8-debian.list
and add following content in it.
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
Now import GPG key on your system for validate packages before installing them.
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
2. Install Java 8
Now use the following commands to update apt cache and then install Java 8 on your Debian system.
apt-getupdate $ sudo apt-getinstall oracle-java8-installer
3. Verify Java Version
At this stage you have successfully installed oracle Java on your Debian system. Let’s use following command to verify installed version of Java on your system.
[email protected]:~$ java -version java version "
1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
4. Configure Java Environment
In Webupd8 ppa repository also providing a package to set environment variables, Install this package using following command.
$ sudo apt-get