On Thursday 16 November 2006 00:43, Edward Diener wrote:
Is there any particular procedure for installing the Java 1,5 on Sun's site to CentOS 4.4 ? I see a Jpackage package called Java-1.5.0-sun-compat but I have no idea what this is or how it is supposed to be used.
Setting up Sun's Java latest 1.5.0 JDK on "that other OS whose name shall not be mentioned" is a no-brainer so it is a bit disappointing that it is more complicated on CentOS 4.4. But maybe it is really as easy as downloading the appropriate file from Sun's site and installing it and I am overestimating any other issues.
Here is the procedure we use to build a set of Sun Java rpms.
To build a set of RPMs for java from java.sun.com -------------------------------------------------
1. Install rpmdevtools if it's not already installed from extras
# yum --enablerepo=extras install rpmdevtools*
Run buildrpmtree. This installs an rpm build environment ( ~/rpmbuild/* ) under the current user.
# buildrpmtree
3. Install jpackage.repo from JPackage
# cd /etc/yum.repos # wget http://www.jpackage.org/jpackage.repo
4. Download the latest Java SDK from sun.java.com. To build a set of RPMs make sure you get the jdk-xxx-linux-i586.bin file not the jdk-xxx-linux-i586-rpm.bin file
#ftp://ftp.sun.com.........
Copy it to ~/rpmbuild/SOURCES
5. Download the latest java-xxx-sun-xxxjpp.nosrc.rpm from JPackage.org ( check the JPackage location for this package )
6. Build the JDK RPMs
# rpmbuild --rebuild java-1.5.0-sun-1.5.0.09-1jpp.nosrc.rpm
If the build is successful there will be a set of java RPMs in ~/rpmbuild/RPMS/i586
java-1.5.0-sun-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-alsa-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-demo-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-devel-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-fonts-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-jdbc-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-plugin-1.5.0.09-1jpp.i586.rpm java-1.5.0-sun-src-1.5.0.09-1jpp.i586.rpm
Regards,
Tony
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos