To Change Firefox java plugin from IcedTeaWeb to Sun JRE on Ubuntu 11.10
execute at terminal to install java plugin for Firefox
$sudo apt-get install icedtea-7-plugin
If you want to change JRE from icedtea java to Sun JRE do this
Put following command
$cd /etc/alternatives/$sudo mv mozilla-javaplugin.so mozilla-javaplugin.ori.so
$sudo ln -s /usr/lib/jvm/jdk1.6.0_26/jre/lib/amd64/libnpjp2.so mozilla-javaplugin.so
To check, what we had changed applied.
$ls -l moz*
lrwxrwxrwx 1 root root 58 2012-01-21 01:38 mozilla-flashplugin -> /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
lrwxrwxrwx 1 root root 58 2012-01-21 01:38 mozilla-javaplugin.ori.so -> /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
lrwxrwxrwx 1 root root 50 2012-01-29 01:38 mozilla-javaplugin.so -> /usr/lib/jvm/jdk1.6.0_26/jre/lib/amd64/libnpjp2.so
To check, what we had changed applied.
$ls -l moz*
lrwxrwxrwx 1 root root 58 2012-01-21 01:38 mozilla-flashplugin -> /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
lrwxrwxrwx 1 root root 58 2012-01-21 01:38 mozilla-javaplugin.ori.so -> /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
lrwxrwxrwx 1 root root 50 2012-01-29 01:38 mozilla-javaplugin.so -> /usr/lib/jvm/jdk1.6.0_26/jre/lib/amd64/libnpjp2.so