How to install Java 7 on Ubuntu 12.04 LTS

Oracle JDK is no longer included by default in Ubuntu’s repositories due to licensing. OpenJDK is default now but many apps still don’t play nice with it. This is why I installed Oracle JDK.

I’ll walk you through the process of installing Oracle JDK 7 on Ubuntu 12.04 LTS Precise Pangolin, the easy way. For this we will use the “install oracle-java7-installer” package from “WEBUPD8”.

The “install oracle-java7-installer” package from “WEBUPD8” will download the official binaries from Oracle and install the JAVA 7 JDK, JRE and browser plugins on your machine.

1. Add the “WEBUPD8” PPA.

2. Update your repositories.

3. Install JAVA 7 JDK.

To uninstall,

Did it work for you? Test here