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 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
Step 2 – Install JAVA 9
Now install Oracle JAVA 9 early release using following set of commands.
$ sudoapt-get update $ sudoapt-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
0 comments:
Post a Comment