Sun-Java6 has arrived in the backport repository of Ubuntu and this howto assumes you have this repository set up.
Install it to make it work in Firefox:
sudo apt-get install sun-java6-plugin
during install accept the licence ….continuing…
If you want the jdk package:
sudo apt-get install sun-java6-jdk
To set up sun-java6:
sudo update-alternatives –config java
This is what you see:
There are 3 alternatives which provide `java’.
Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.1 * 2 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java + 3 /usr/lib/jvm/java-6-sun/jre/bin/java Press enter to keep the default[*], or type selection number:
In my case I have to select “3” and hit enter .
Thats it , you have Sun-Java6 up and running in the easiest way possible. 🙂
To revert back to sun-java5 for whatever reason :
sudo update-alternatives –config java
and select your preferred java-version.
Will these instructions be updated for Hardy Heron?
Ubuntu 8.04
Thank you for your very helpful work?
2b.
Comment by 2b — May 27, 2008 @ 12:45 am