Install JAVA 9 (JDK9) on Debian Via PPA

Oracle JAVA 9 Early Access release is available to download and install. Java 9 stable release is supposed to be come in 2017. So you have to wait for Java 9 stable version.
Note: Currently JAVA 9 is in early access release, so use this version for development and research only. For production servers we recommend to use Java 8 stable release. Use this article to install Java 8 on Debian system.

Step 1 – Add JAVA 9 PPA

First you need to add webupd8team Java PPA repository in your system. Edit a new ppa file /etc/apt/sources.list.d/java-9-debian.list in text editor
$ sudo vim /etc/apt/sources.list.d/java-9-debian.list
and add following content in it.
deb trusty main
deb-src trusty main
Now import GPG key on your system for validate packages before installing them.
$ sudo apt-key adv --keyserver --recv-keys EEA14886

Step 2 – Install JAVA 9

Now install Oracle JAVA 9 early release using following set of commands.
$ sudo apt-get update
$ sudo apt-get install oracle-java9-installer

Step 3 – Verify Java Version

Now you have successfully installed JAVA 9 on your Debian system. Let’s verify installed version of JAVA on your system using following command.
root@hackthesec:~$ java -version

java version "1.9.0-ea"
Java(TM) SE Runtime Environment (build 1.9.0-ea-b50)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b50, mixed mode)

Configuring Java Environment

In Webupd8 ppa repository also providing a package to set environment variables, Install this package using following command. This will set the useful environment variables for JAVA in your system.
$ sudo apt-get install oracle-java9-set-default

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment