First Part:
- Download *rpm.bin package from official site. Try to install it and it fails with unpacked rpm package.
- Convert with alien: alien --scripts ./jre-6u30-linux-amd64.rpm
dpkg -i jre_1.6.030-1_amd64.deb
- update-alternatives --get-selections |grep java
- update-alternatives --install "/usr/bin/java" "java" "/usr/java/default/bin/java" 1
- update-alternatives --set java /usr/java/default/bin/java
- update-alternatives --list java to check
- update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/java/default/bin/java" 1
- update-alternatives --set javaws /usr/java/default/bin/javaws
Google chrome found plugin without problems. The steps for Firefox are following:
- Check what's in /usr/lib/mozilla/plugins/ and remove open jdk icedtea or whatever. Name "libjavaplugin.so" is important.
- Simply link it this way:
ln -s /usr/java/default/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libjavaplugin.so
Or use update-alternatives:
update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin" "/usr/java/default/lib/amd64/libnpjp2.so" 1
update-alternatives --set mozilla-javaplugin "/usr/java/default/lib/amd64/libnpjp2.so"
Third part. Don't forget about Look&Feel:
(Default Ubuntu location)
/etc/java-6-sun/swing.properties
# uncomment to set the default look and feel to GTK
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
(New with authintic Java install):
/usr/java/default/lib/swing.properties
# uncomment to set the default look and feel to GTK
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
set JAVA_HOME=/usr/java/default; in /etc/environment or export in .bashrc