Ubuntu 11.10 does not offer Oracle’s Java because OpenJDK supposedly replaces it. My guess is the OpenJDK “properly” implements Java such that it doesn’t work with any problem. I find it highly annoying, most programs don’t run with it.
You can install Oracle’s Java 6.2 from this PPA (Private Package Archive).
Please see ppa:ferramroberto/java…
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-cache search sun-java6
sudo apt-get install –reinstall sun-java6-jre sun-java6-plugin sun-java6-fonts
Then set java-6-sun as default. Choose java-6-sun/jre/ from the list. This step is important:
sudo update-alternatives –config java
This command does it directly without asking:
sudo update-alternatives –set java /usr/lib/jvm/java-6-sun/jre/bin/java