Are you a person who is interested to try new updates? Then it’s your time, Yes now you have Java 9 to try. It is normal to have updates in any sectors, Oracle also updates its Java version periodically. In that case today in this post i am going to list the steps that can help you to install Java 9 for Ubuntu, Linux Mint and Debian via PPA.
Download Java 9 from the official website.
But Java 9 is not yet free from bugs, if you need it obviously then you can download it.
STEPS TO INSTALL JAVA 9 FOR UBUNTU
STEP 1: ADD PPA TO YOUR SYSTEM
To install Java 9 and to add PPA, open the terminal and type the following command.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update sudo apt-get install oracle-java9-installer</pre>
The above code can add PPA to your system and to install JAVA 9 in Debian then you have to “add-apt-repository”.
TO INSTALL JAVA 9 in Debian:
su - echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt-get update apt-get install oracle-java9-installer exit
STEP 2: CHECK THE JAVA VERSION
After executing the step 1 then you can check the installation of Java 9 in your system by typing the following command “java-version”. If you execute this command then you will get the below output displayed after the code “java version”.
ubuntumag-desktop:~$ 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)
STEP 3: AUTOMATED INSTALLATION
As soon as you install the Java 9, then you will be prompted to accept the Oracle Java 9 license. So you can automatically accept the license by executing the following code.
echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
STEP 4: SETUP JAVA 9 ENVIRONMENT VARIABLE
Type the following code to install Java 9 environment variables.
sudo apt-get install oracle-java9-set-default
And finally Java 9 is installed in you system….