Screw update-alternatives. This didn't work either. It doesn't even change the symlinks in /etc/alternatives/ . And I also didn't even had the /usr/lib/xulrunner/libjavaplugin.so and /usr/lib/mozilla/plugins/libjavaplugin.so files. I ended up creating every symlink manually:
If any of these files already exist they should be deleted, otherwise the new symlink cannot be created.
I made a shell script to do all this. I'm attaching it. Don't worry if you get an error message saying that something can't be deleted.
This works 100%! I tested it on two computers and this workaround also survives a reboot.
Screw update- alternatives. This didn't work either. It doesn't even change the symlinks in /etc/alternatives/ . And I also didn't even had the /usr/lib/ xulrunner/ libjavaplugin. so and /usr/lib/ mozilla/ plugins/ libjavaplugin. so files. I ended up creating every symlink manually:
sudo ln -s /usr/lib/ jvm/java- 6-sun/jre/ lib/i386/ libnpjp2. so /etc/alternativ es/xulrunner- 1.9-javaplugin. so jvm/java- 6-sun/jre/ lib/i386/ libnpjp2. so /etc/alternativ es/xulrunner- javaplugin. so jvm/java- 6-sun/jre/ lib/i386/ libnpjp2. so /etc/alternativ es/firefox- javaplugin. so jvm/java- 6-sun/jre/ lib/i386/ libnpjp2. so /etc/alternativ es/mozilla- javaplugin. so
sudo ln -s /usr/lib/
sudo ln -s /usr/lib/
sudo ln -s /usr/lib/
sudo ln -s /etc/alternativ es/xulrunner- 1.9-javaplugin. so /usr/lib/ xulrunner- 1.9.0.4/ plugins/ libjavaplugin. so es/xulrunner- javaplugin. so /usr/lib/ xulrunner/ libjavaplugin. so es/firefox- javaplugin. so /usr/lib/ firefox/ plugins/ libjavaplugin. so es/mozilla- javaplugin. so /usr/lib/ mozilla/ plugins/ libjavaplugin. so
sudo ln -s /etc/alternativ
sudo ln -s /etc/alternativ
sudo ln -s /etc/alternativ
If any of these files already exist they should be deleted, otherwise the new symlink cannot be created.
I made a shell script to do all this. I'm attaching it. Don't worry if you get an error message saying that something can't be deleted.
This works 100%! I tested it on two computers and this workaround also survives a reboot.