Redhat EL 5 : if you install a random java package
to /usr/java/ :
cd /usr/bin/
.. example jdk :
# ln -s /usr/java/jdk<version>/jre/bin/java
And if you want a package created for EL 5 :
The Scientific Linux repo .. e.g. i586 :
http://ftp.scientificlinux.org/linux...7-fcs.i586.rpm
> > jdk-1.6.0_17-fcs.i586.rpm
x86_64 :
http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm
> > jdk-1.6.0_17-fcs.x86_64.rpm
These packages will set up the links at install ..
also to /etc/alternatives/ ,
so you can change between versions with the command :
# /usr/sbin/update-alternatives --config java
.....