Wednesday, March 19, 2014

Install Oracle Java 8 (JDK8 and JRE8) in Ubuntu / Linux Mint

The installer provides Oracle Java 8 (which includes Java JDK, JRE and the Java browser plugin). However, you can't only install Oracle JRE - the PPA only provides the full Oracle JDK8 package.


The PPA supports Ubuntu 14.04, 13.10, 12.10, 12.04 and 10.04 as well as the corresponding Linux Mint versions. Add the PPA and install Oracle Java 8 (the package provides both JDK8 and JRE8) using the following commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Once installed, running "java -version" in a terminal should output something like this:


linuxmaiden@lover ~ $ java -version

java version "1.8.0"
Java (TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot (TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

Or, "javac -version":

linuxmaiden@lover ~ $ javac -version
javac 1.8.0

Setting Up Java Variables


To automatically set up the Java 8 environment variables, or if you had a prior version of Java and it didn’t show it was updated to Java version “1.8.0” after the download you can install the following package:

sudo apt-get install oracle-java8-set-default
recheck Java version
linuxmaiden@lover ~ $ java -version

If you've already installed oracle-java6-set-default or oracle-java7-set-default, they will be automatically removed when installing oracle-java8-set-default (and the environment variables will be set for Oracle Java 8 instead).


WEB UPD8

Unixmaiden on Google +




2 comments :

  1. This is perfect. did this on linux mint 17.3 and worked like a charm. I first uninstalled openjdk 7, and this installed so smoothly!

    perfect :-)

    ReplyDelete
  2. You should be 21 years of age or older, not on any self-exclusion lists, and within 1Xbet the state of Pennsylvania to play. Team members with direct or oblique supporting roles for PlayLive! Please examine together with your supervisor for the company policy in your position. Get straight to action by way of our easy to play net browser games in your PC, Mac or cell system. The pleasure increases with two slots games sharing the same progressive jackpot. With over one hundred games to choose from|to select from}, there's be} all the time something new to play.

    ReplyDelete