Due to the new Java license, Oracle JDK was removed from Ubuntu repository and it doesn’t be hosted in the PPA.

If you want to use Oracle Java instead of OpenJDK Java Runtime in Ubuntu. You can use private PPAs that provide installer to automatically download Oracle Java JDK 7 from its official website and install it on your computer.

Note: These PPA may or may not work, use it at your own risk!

First, open up a terminal window and remove OpenJDK by command:

sudo apt-get purge openjdk*

Then, add ppa:eugenesan/java and install Oracle Java (JDK) 7 in Ubuntu 10.04/10.10/11.04/11.10/12.04:

sudo add-apt-repository ppa:eugenesan/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Webupd8 Team also built a PPA for the installer which includes JRE and the Java browser plugin

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

After that, search java in the Dash and check it in Java Control Panel: