title: Mac echo $JAVA_HOME return blank
body: <p>I don't know why echo $JAVA_HOME return blank </p>
  
  <p>Abdelmajids-iMac:~ majid$ vi .profile</p>
  
  <pre><code>export PATH=/usr/local/bin:(...)
  [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # Load 
  RVM into a shell session *as a function*
  export JAVA_HOME=$(/usr/libexec/java_home)
  ~                                                                                                    
  
  ~      
  
  
  Abdelmajids-iMac:~ majid$ /usr/libexec/java_home
  /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
  Abdelmajids-iMac:~ majid$ vi .bash_profile
  Abdelmajids-iMac:~ majid$ source .bash_profile
  -bash: .bash_profile: line 1: syntax error near unexpected token `('
  -bash: .bash_profile: line 1: `export PATH=/usr/local/bin:(...)'
  Abdelmajids-iMac:~ majid$ echo  $JAVA_HOME
  
  Abdelmajids-iMac:~ majid$ 
  </code></pre>