Saturday, June 8, 2013

Ubuntu: How to install the Oracle Java on Ubuntu via Repository/PPA

OpenJDK is a great open-source implementation of Java Platform supported by open-source community and Oracle itself. However it's very well stable and compatible with Java applications there is a few cases where it's necessary to use the Oracle Java JRE/JDK itself.

The problem about this is that there isn't an official Oracle Java repository available for Ubuntu. Even there's no *.DEB package available to download in Oracle Java site.

However, the Web Upd8 team has provide a Ubuntu PPA with the Oracle Java packages what today it's provide 3 versions of that: 6, 7 and the newest 8. If you want to check the PPA itself you can check it on

So, the installation of a ppa software itself is quite simple, just follow the next lines:

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

sudo apt-get install oracle-java7-installer

sudo apt-get install oracle-java8-installer