How to setup Sun's Java JDK on Fedora 8
- Download the Linux Platform - Java SE Development Kit 6 Update 3
from java.sun.com and install it. -
Help I can't find it
- Make sure that you have version 1.7+ of the jpackage utilities
installed, then download and install the JPackage sun-compat
RPM (this handles your alternatives) from jpackage.org.
- # rpm -qa | grep jpackage
jpackage-utils-1.7.3-1jpp.3.fc8
- java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm -
Help I can't find it
- Yum download and install compat-libstdc++-33 - (The browser
plugin will not work without this)
- yum install compat-libstdc++-33
- Fix the Xinerama bug by updating libxcb to version 1.0-4 or
later - (The browser plugin will not work without this)
- yum update libxcb
- If you can't or don't want to do that you can modify
the libmawt.so file directly
sed -i 's/XINERAMA/FAKEEXTN/g'
/usr/java/jdk1.6.0_06/jre/lib/i386/xawt/libmawt.so
- If you've updated your system after you installed it,
libxcb is probably good
- Delete the libjavaplugin_oji.so link in
/usr/lib/mozilla/plugins that the jpackage rpm just installed -
it isn't needed
- cd /usr/lib/mozilla/plugins
- # rm libjavaplugin_oji.so
- Caution: Do not delete libjavaplugin.so
- You will want to make the java plugin configurable with
alternatives, run the command below to add the Sun Java
plugin to alternatives
- /usr/sbin/alternatives --verbose --install
/usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so
/usr/lib/jvm/jre-sun/plugin/i386/ns7/libjavaplugin_oji.so
16000 - (all on one line)
- Select the Java versions that you want with the alternatives
program - alternatives - huh?
You do not have to remove IcedTea to get Sun's Java to work!
This works for x86_64 as well however the Sun Java plugin will not
work with x86_64. So if you are using x86_64 you are limited to the
icedtea plugin.
If you have used this site to install Sun's Java on F8, or you find
any problems, corrections or simplifications that you can suggest,
please email me at sunjava at rabbitbrush dot frazmtn dot com.