title: How to uninstall java from mac completely? JRE and JDK
body: <p>I did navigate to /Library/Java/JavaVirtualMachines and removed the jdk, and there is nothing in that folder anymore. But my terminal shows I have some version of java, so I am a little confused, I wanna uninstall java completely from my laptop. I did uninstall JRE too using a set of commands.</p>
  <p>steps to reproduce</p>
  <ol>
  <li><p><code>java -version</code></p>
  <p>output:</p>
  </li>
  </ol>
  <pre><code>openjdk version &quot;1.8.0_152-release&quot;
  OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
  OpenJDK 64-Bit Server VM (build 25.152-b01, mixed mode)
  </code></pre>