sun jdk

How to install Sun Java JDK/JRE in Ubuntu Maverick

As Sun (Oracle) repos has been removed completely from Ubuntu Partner repos in Ubuntu Maverick, you can’t install Sun Java JDK or JRE any more.

Running sudo apt-get install sun-java6-jdk will produce the following error

Package sun-java6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate