Fedora Core 4 release notes now
recommends that you DO NOT use Sun's JDK packages (see
description of bugs). You should build the
package from the JPackage Project instead.
The full instructions for building it are
here; and the following is a summary of the steps:
1. become root
2. install the "java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm" package, with something like this:
Code:
rpm -i http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm
3. it extracts stuff into /usr/src/redhat
4. download the "jdk-1_5_0_05-linux-i586.bin" file from
Sun website and put it in /usr/src/redhat/SOURCES
5. run
Code:
rpmbuild -ba /usr/src/redhat/SPECS/foo.spec
6. in the /usr/src/redhat/RPMS/i586 directory, it makes the following RPMs that you can install:
* java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm - JRE (required)
* java-1.5.0-sun-devel-1.5.0.05-1jpp.i586.rpm - JDK
* java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm - sources
* java-1.5.0-sun-demo-1.5.0.05-1jpp.i586.rpm - demonstration files
* java-1.5.0-sun-plugin-1.5.0.05-1jpp.i586.rpm - browser plugin
* java-1.5.0-sun-fonts-1.5.0.05-1jpp.i586.rpm - fonts
* java-1.5.0-sun-alsa-1.5.0.05-1jpp.i586.rpm - ALSA support
* java-1.5.0-sun-jdbc-1.5.0.05-1jpp.i586.rpm - JDBC/ODBC bridge driver
7. If you install browser plugin and want to make it work, do something like this:
Code:
cd /usr/lib/mozilla/plugins
ln -s /etc/alternatives/jre/plugin/i386/ns7/libjavaplugin_oji.so .