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.

This article will help you to Install Oracle JAVA 9 early access release on Debian systems using PPA.
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.listand 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 mainNow 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.rahul@tecadmin:~$ 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-getReferences: https://launchpad.net/~webupd8team/+archive/javainstall oracle-java9-set-default
Comments
Post a Comment