I've used another method to install Java an the Java plugins for Firefox. This one is not listed on the Ubuntu Wiki and I can't find it here too.
It seems to be the (new) correct way to install Sun JDK on Ubuntu/Debian.
1) Install java-common and equivs with apt-get.
Code:
sudo apt-get install java-common equivs
The output of the last command should be something like
Code:
java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
You should now have a full and working Java environment.