Monday, 30 March 2015

How to install latest Oracle JDK in Ubuntu

Assuming you are connected to the internet and Ubuntu 14.04 is installed.

The following will add the Java 1.8 repos and install the latest 1.8 version.
Open a terminal an type the following
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Just accept the license during installation and that's it!.

You can verify installation by typing the following at the terminal
java -version
Should show something like the following (depending on the version you have installed).
java version "1.8.0_40"

No comments:

Post a Comment