[CentOS] Official Java

Mon Aug 7 16:27:04 UTC 2006
Alfred von Campe <alfred at 110.net>

On Aug 6, 2006, at 8:13, Ted Miller wrote:

> What is the official method to install Java on Centos?  I searched,  
> but
> could find no mention of Java on the Web site.

Like others already mentioned, there is no "official" way, and like  
others, I like to install the Sun JRE.  I then run the following  
"alternatives" commands to make it the default version (this assumes  
you are using version 1.5.0_07 of the JRE):

   # alternatives --install /usr/bin/java java /usr/java/jre1.5.0_07/ 
bin/java 10 \
     --slave /usr/bin/rmiregistry rmiregistry /usr/java/jre1.5.0_07/ 
bin/rmiregistry \
     --slave /usr/lib/jvm/jre jre /usr/java/jre1.5.0_07
   # alternatives --set java /usr/java/jre1.5.0_07/bin/java

I currently have a dozen or so developer systems deployed using  
CentOS 4.3 and the aforementioned Sun JRE 1.5.0_07.

Alfred