This article will help you to Install JAVA 8 on Debian 8/7 system using PPA and apt-get command line.
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.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 validating packages before installing them.
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
2. Install Java 8 on Debian
Now use the following commands to update apt cache and then install Java 8 on your Debian system.$ sudoapt-get update $ sudoapt-get install oracle-java8-installer
3. Verify Java Version
Finally, you have successfully installed oracle Java on your Debian system. Let’s use the following command to verify installed version of Java on your system.rahul@tecadmin:~$ java -version java version "1.8.0_121 " Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode, sharing)
4. Configure Java Environment
In Webupd8 PPA repository also providing a package to set environment variables, Install this package using the following command.$ sudo apt-getReferences: https://launchpad.net/~webupd8team/+archive/javainstall oracle-java8-set-default
Comments
Post a Comment