[CentOS] Re: Java JDK on CentOS 4.4
tony.molloy at ul.ie
Thu Nov 16 10:42:39 UTC 2006
On Thursday 16 November 2006 10:29, Johnny Hughes wrote:
> On Thu, 2006-11-16 at 09:54 +0000, Tony Molloy wrote:
> > 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
> There is no rpmdevtools in CentOS extras (nor did I see it in rpmforge
> or kbs repos) .... so none of the above works that I can tell.
Oops!! Sorry, install fedora-rpmdevtools-1.1-1.fc4 from Fedora Core 4
> 1. You can install some things in CentOS to get a build environment
> yum install rpm-build gcc gcc-c++ redhat-rpm-config
> 2. You can then create a directory called rpmbuild in your current
> user's home:
> mkdir ~/rpmbuild
> 3. You can then create (or edit) your .rpmmacros file to use your
> newly created rpmbuild dir ... using the editor of your choice edit the
> file ~/.rpmmacros and add/edit this line:
> %_topdir ~/rpmbuild
> > 3. Install jpackage.repo from JPackage
> > # cd /etc/yum.repos
> this should be--^^^^^^^^^
> cd /etc/yum.repos.d/
> > # 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
> OK ... the above now stands at least a chance of working ... though I
> did not try it.
I tried it and it works.
Dept. of Comp. Sci.
University of Limerick
More information about the CentOS