On Wed, 2007-11-14 at 15:21 -0600, Dan Carl wrote:
----- Original Message ----- From: "Craig White" craig@tobyhouse.com To: centos@centos.org Sent: Wednesday, November 14, 2007 2:15 PM Subject: [CentOS] Installing java on CentOS 5
strugging with things here...
tried tracking the info on the Wiki (which apparently is now in need of a maintainer)... http://wiki.centos.org/HowTos/JavaOnCentOS
My primary interest is using Xalan/Saxon/xslt/xsl-fo docbook generation.
I was thinking that all I really need is jre but downloaded both jre and jdk just in case.
can anyone tell me what I'm doing wrong? (after removing both jdk & jre)...
-rw-r--r-- 1 root root 56835774 Sep 25 00:47 jdk-6u3-linux-i586.rpm -rw-r--r-- 1 root root 18835725 Sep 25 00:45 jre-6u3-linux-i586.rpm
I tried installing each of them but they never show up in # alternatives --config java
# rpm -qa|grep jpackage jpackage-utils-1.7.3-1jpp.2.el5
# rpm -ivh jre-6u3-linux-i586.rpm Preparing... ########################################### [100%] 1:jre ########################################### [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... localedata.jar... plugin.jar... javaws.jar... deploy.jar...
# alternatives --config java
Download the RPM and install that matches your version of JDK from here ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free in your case wget ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/java-1.6.0-sun-compat-1.6.0.03-1jpp.i586.rpm Install the RPM and you should be all set.
The Wiki does state to install both packages but the link is bad and the current JDK is 6 update 3 Explaination can be found here http://www.jpackage.org/installation.php
---- thanks - I got it installed.
I only wish I understood what I did so I can do it again next year ;-)
I hope now that java is GPL that it is packaged/bundled to eliminate this nonsense
Craig