Taylor is right, I really would recommend yum for installing extra packages.
However, I installed java by hand myself and it is very easy to do.
1. Download the following rpm from the Sun-Javasite: jre-1_5_0-linux-i586.rpm
2. Open a console, become superuser by typing su and your root password.
3. Go to the directory where you saved the rpm
4. Run the rpm-command by typing rpm -iv jre-1_5_0-linux-i586.rpm
5. change to your Mozilla or Mozilla Firefox plugins directory and issue the following command: ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so
6. Then I made a file called java.sh with the content you find at the bottom of this reply
7. make the file java.sh executable (right-click, properties, executable) and copy it in the /etc/profile.d folder and you are ready.
8. Reboot and everything should be working.
9. You can check easily if Java is in the path after this install by typing echo $PATH in a console. You should find Java in the path somewhere.
10. To see if Java is working in your browser you can try the following link:
http://www.bodo.com/javame.htm
Jan
The content of java.sh:
# /etc/profile.d/java.sh - Sets Java Environment
if [ -z "$JAVA_HOME" ]; then
if [ -e /etc/javaversion ]; then
javaver=`cat /etc/javaversion | head -1`
fi
if [ -z $javaver ]; then
jdkpath=`ls -1 /usr/java/ | grep "$javaver" | head -1`
if [ "X$jdkpath" == "X" ]; then
jdkpath=`ls -1 /usr/java/ | head -1`
fi
else
jdkpath=`ls -1 /usr/java/ | head -1`
fi
export JAVA_HOME=/usr/java/$jdkpath
export PATH=${PATH}:${JAVA_HOME}/bin
fi