When I type
which java in a terminal, I get
and on typing
echo $JAVA_HOME, I get
If I try
java -version or
/usr/bin/java --version or
java -V, however, it's freezing up.
type java, it gives me:
java is hashed (/usr/local/tools/i386_Darwin/jdk1.7.0_21/bin/java)
I'm not sure if I'm supposed to set up an environment variable or should I reinstall jdk?