- Details
- Written by Michel VONGVILAY
- Category: Admin
This article will show you how to install Oracle JAVA 8 (JDK/JRE 8u66) on Ubuntu, Mint and Debian Linux systems.
We will use an installer maintained by WebUpd8 team.
In this article, you'll need :
- Linux Ubuntu or Mint or Debian installed
- root access is needed
Add repository
On Ubuntu or Mint via PPA repository
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
On Debian
[root]$ echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
[root]$ echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
[root]$ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
Install Oracle Java 8
# Install Java 8
$ sudo apt-get install oracle-java8-installer
# To automatically set up the Java 8 environment variables
$ sudo apt-get install oracle-java8-set-default
Verify installation
# Check java version
$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
$ javac -version
javac 1.8.0_66
HTH.
Please leave comments and suggestions,
Michel.
Reference
How To Install Oracle Java 8 In Debian Via Repository (webupd8.org)
Install Oracle Java 8 In Ubuntu Or Linux Mint Via PPA Repository (webupd8.org)
Enjoyed this article? Please like it or share it.
Comments
I want to to thank you for your time due to this fantastic read!!
I definitely appreciated every bit of it and i also have you saved as a favorite to
look at new information on your website.
RSS feed for comments to this post