You need to add java to your path. Create a file called java.sh in /etc/profile.d and if you installed the jre rpm, add the contents below,
Code:
#!/bin/sh
export JAVA_HOME=/usr/java/jre1.5.0_09
export MANPATH=$MANPATH:/usr/java/jre1.5.0_09/man
export PATH=$PATH:/usr/java/jre1.5.0_09/bin
After that, make the file executable (chmod +x 755 /etc/profile.d/java.sh).