Well, I'm not using RH, but for all I know
sun doesn't do any of the modifications
needed for environment variables for
you (not for me, anyway ;}) ...
What you need to do is create a file
/etc/profile.d/jdk.sh
with the following contents (modify to
your needs)
Code:
#!/bin/sh
# Add JDK1.4 specific settings
# please note that your path's might be different! :}
export JAVA_HOME=/usr/java
export PATH=$PATH:/usr/java/bin:/usr/java/jre/bin
export CLASSPATH=$JAVA_HOME/lib
Then
chmod u=rwx /etc/profile.d/jdk.sh
chmod go+rx /etc/profile.d/jdk.sh
If the newer RH versions don't like your
Java you could still get the rpm and check
which settings it would modify using midnight
commander ... :)
HIH
Cheers,
Tink