title: Wrongly set the JAVA_HOME in mac
body: <p>I changed the Java home of my mac from Java 10 to Java 8 by using the below comment:</p>
  
  <pre><code>echo export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.8)" &gt;&gt; ~/.bash_profile
  </code></pre>
  
  <p>But unfortunately, when I wun the command I put 1.7 instead of 1.8:</p>
  
  <pre><code>echo export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.7)" &gt;&gt; ~/.bash_profile
  </code></pre>
  
  <p>Now when I am opening the terminal getting the below error:
  Unable to find any JVMs matching version "1.7".</p>