Tuxicity's source

January 31, 2007

Howto: Switching from Sun-Java5 to Sun-Java6 in Ubuntu6.10 (edgy)

Filed under: Kubuntu, Tuxicity, Ubuntu, xubuntu — tuxicity @ 6:58 pm

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.

1 Comment »

  1. 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


RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.