Re: Installing java on CentOS 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



----- Original Message ----- 
From: "Craig White" <craig@xxxxxxxxxxxxx>
To: <centos@xxxxxxxxxx>
Sent: Wednesday, November 14, 2007 2:15 PM
Subject:  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

> There is 1 program that provides 'java'.
>
>   Selection    Command
> -----------------------------------------------
> *+ 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
>
> Enter to keep the current selection[+], or type selection number:
>
> Craig
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux