How to setup Sun's Java JDK on Fedora 8

  1. Download the Linux Platform - Java SE Development Kit 6 Update 3 from java.sun.com and install it. - Help I can't find it
  2. 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.03-1jpp.i586.rpm - Help I can't find it
  3. Yum download and install compat-libstdc++-33 - (The browser plugin will not work without this)
    • yum install compat-libstdc++-33
  4. 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_03/jre/lib/i386/xawt/libmawt.so
    • If you've updated your system after you installed it, libxcb is probably good
  5. 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
  6. 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)
  7. 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.

Comments

Popular posts from this blog

This Year Nobel Prize In Physics

Perpetual Motion