title: ERROR: JAVA_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
body: <p><a href="https://i.stack.imgur.com/TEmgU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TEmgU.png" alt="enter image description here" /></a>
  here is my error that showing when i run ./gradle --version</p>
  <p><a href="https://i.stack.imgur.com/DImw6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DImw6.png" alt="enter image description here" /></a>
  here is my java -version 17.0.2 that is set.</p>