# which java
/usr/bin/which: no java in (/usr/local/jdk/jdk1.5.0_10/bin/java:/usr/local/jdk/jdk1.5.0_10/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
I installed java in /usr/local/jdk/jdk1.5.0_10 but cannot run java -version
I get this
$ java -version
-bash: /usr/bin/java: No such file or directory
this is red hat linux