title: installing Java via brew and cask
body: <p>I just installed Java via <code>brew</code> on my mac.</p>
  
  <pre><code>brew cask install java8
  </code></pre>
  
  <p>It installed into <code>/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home</code>.</p>
  
  <p>I then set java home in my .zshrc file.</p>
  
  <pre><code>export JAVA_HOME=$(/usr/libexec/java_home)
  </code></pre>
  
  <p>But when I type which java it shows.</p>
  
  <pre><code>/usr/bin/java -&gt; /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
  </code></pre>
  
  <p>Does this correspond to the Java I just installed?</p>