Installing Java 8 on Ubuntu 14.04

To install Oracle Java 8 on Ubuntu 14.04. Go to terminal and give following commands.

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

This will first fetch a web installer which is around 160KB. There after actual java (jdk-8uX-linux-i586.tar.gz), which is around 160MB, will be downloaded and installed.

To check, give following command. This command will output the version of java installed.

java -version


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

error: Uh oh ...