title: SET JAVA_HOME to reflect jenv java version
body: <p>I just started to use <code>jenv</code>, I followed a blog post that was explaining how to use <code>jenv</code> and setup multiple java version on MacOSX. But the problem now I am running into is setting up the JAVA_HOME. As I switch java environment using <code>jenv</code> I want to make sure <code>JAVA_HOME</code> on my bash_profile also changes accordingly. </p>
  
  <p>How do i do that?</p>
  
  <p>I have following on my <code>~/.bash_profile</code></p>
  
  <pre><code>if which jenv &gt; /dev/null; then eval "$(jenv init -)"; fi
  </code></pre>