| Install Sun's closed-source Java
VM and browser plugin. Type these
commands in a terminal window. Applicable
on 32 bits (i386)
Ubuntu only ! |
| sudo apt-get install --reinstall -y sun-java6-jre sun-java6-plugin |
| Install the free OpenJDK Java VM and Icedtead java-plugin for Firefox/Opera/Mozilla browsers. Note that these packages are part of the "ubuntu-restricted-extras" meta package. Applicable on both 32 and 64 bits Ubuntu. |
| sudo apt-get install --reinstall -y icedtea-gcjwebplugin openjdk-6-jre openjdk-6-jre-lib |
| sudo update-alternatives --list java |
| sudo update-alternatives --list xulrunner-1.9-javaplugin.so |
| sudo update-alternatives --config java |
| Selection | Alternative |
| * 1 |
/usr/lib/jvm/java-6-openjdk/jre/bin/java |
| 2 |
/usr/lib/jvm/java-6-sun/jre/bin/java |
| sudo update-alternatives --config xulrunner-1.9-javaplugin.so |
| Selection | Alternative |
| * 1 |
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/gcjwebplugin.so |
| 2 |
/usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so |
| pkill firefox |
| sudo update-alternatives --list javac |
| sudo update-alternatives --config javac |