title: echo $JAVA_HOME returns nothing
body: <p>How to get the java home dir?</p>
  
  <p>When doing this</p>
  
  <pre><code>echo $JAVA_HOME
  </code></pre>
  
  <p>Nothing is returned</p>
  
  <p><a href="https://i.stack.imgur.com/d3s66.png" rel="noreferrer"><img src="https://i.stack.imgur.com/d3s66.png" alt="enter image description here"></a></p>