Installing Java plugin for Firefox on Ubuntu 10.10 (Maverick)

Again after upgrading from Ubuntu 9.10 to 10.4, I had some issues getting Java to work with Firefox, after checking the software center, I found that the Java plugin for firefox is not working properly which broke my vpn connection.

To get this fixed, I simply followed the steps :

1- Backup your repositories files.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2- Open your repositories file:

sudo gedit /etc/apt/sources.list

3- Add the following line then close the sources.list file

deb http://archive.canonical.com/ubuntu maverick partner

4- Uninstall both icedtea6-plugin and openjdk-6-jre.

sudo apt-get remove icedtea6-plugin openjdk-6-jre

5- Install sun-java6-plugin

sudo apt-get install sun-java6-plugin
sudo update-alternatives --install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 1

6- Close your firefox and reopen it again, it should be working smoothly.

8 Responses to Installing Java plugin for Firefox on Ubuntu 10.10 (Maverick)

  1. usul says:

    Hi,
    why openjdk ?
    sun is in partner too and works better 🙂

  2. phparch says:

    well, unfortunately my vpn client is outdated, and it works only with openjdk !

  3. auser says:

    I get this error message without and with openjdk:

    sudo apt-get install openjdk-6-jre
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    openjdk-6-jre is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    jesse@Jesse-school-work-programming:~$ sudo apt-get install sun-java6-plugin
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package sun-java6-plugin 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-plugin' has no installation candidate

    help?…

  4. Sam says:

    sudo apt-get install openjdk-6-jre ?

    sudo apt-get remove openjdk-6-jre !

  5. Jacob says:

    sudo apt-get update before you install sun-java6-plugin

  6. Daniel says:

    I get the following error, the path does in fact exist. Thoughts?

    sudo update-alternatives –install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 1
    update-alternatives: error: alternative path /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so doesn't exist.

  7. Walid says:

    it works, thanks

  8. Grady says:

    I keep getting this when I try to install.

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package sun-java6-plugin 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-plugin' has no installation candidate

Leave a Reply

Your email address will not be published. Required fields are marked *