title: Making sure JAVA_HOME is correctly set
body: <p>Pretty new to Java and also to Mac ... I want to make sure JAVA_HOME is set so in other programs I can use its path.
  So I did some Googling and here is what I got:</p>
  
  <p>If I enter <strong>/usr/libexec/java_home</strong> in terminal I get this: 
  <strong>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home</strong>
  but if I enter <strong>echo $JAVA_HOME</strong> in terminal, I don't get anything back. </p>
  
  <p>Can you please tell me what is going on in here?</p>
  
  <p>Thanks.</p>