I will go ahead and post it just in case....Please note however that these instruciton install Java7 NOT Java6
cut and paste from http://www.webupd8.org
Install Oracle Java 7
For most stuff, OpenJDK/JRE is enough (and you can install it using
Ubuntu Software Center), but in case you really need Oracle
(previously Sun) Java 7, you can install it (this will install JDK/JRE
and the browser plugin) in Ubuntu using the WebUpd8 Java PPA
in terminal type
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
This is a excerpt of my answer to this question.
The PPA that you install with thesecommands only points to the Java website to make installing easier, it does not contain Java itself. Oracle changed the license and now it can not be hosted anywhere and can only be downloaded directly from Oracle..
HERE is an older post from the same site that gives more information on this change as well as more information on Java7 itself and how to remove it , check for and select which version is running.