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

18
Leave a Reply

avatar
16 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
11 Comment authors
pirate costumesnaomiAAERegisel X Recent comment authors
  Subscribe  
Notify of
usul
Guest

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

auser
Guest
auser

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?…

Sam
Guest
Sam

sudo apt-get install openjdk-6-jre ?

sudo apt-get remove openjdk-6-jre !

Jacob
Guest
Jacob

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

Daniel
Guest
Daniel

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.

Regis
Guest
Regis

Daniel, replace "i386" by your arch (in my computer, "amd64")

Walid
Guest
Walid

it works, thanks

Grady
Guest
Grady

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

Elvin
Guest
Elvin

thank you men it works!!!!

el X
Guest
el X

Very helpful, thank you

AAE
Guest
AAE

All went OK!! Thanks!!

onda
Guest
onda

Simply perfect! Thanks!

Felix
Guest
Felix

I love you man. You saved me a lot of headache!!

naomi
Guest
naomi

Thanks for this. Worked perfectly and was so easy to understand and do!

trackback

[…] Helpful Links […]

pirate costumes
Guest

Thanks. It works. Really help me a lot.