title: How to set JAVA_HOME in Mac permanently?
body: <p>I am trying to set <code>JAVA_HOME</code> by entering <code>export JAVA_HOME=/Library/Java/Home</code> at terminal.
  It sets the <code>JAVA_HOME</code> for current session. </p>
  
  <p>How can I set it permanently?</p>