Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

On typing 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?


migration rejected from Aug 15 '14 at 13:31

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as too broad by KronoS, Jens Erat, Kevin Panko, Scott, Michael Kjörling Aug 15 '14 at 13:31

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

Off topic ... maybe this should be on – Tim Bender Jun 17 '13 at 18:40

Browse other questions tagged or ask your own question.