title: JAVA_HOME should point to a JDK not a JRE
body: <p>I am  trying to set up maven for my project and I am getting this error </p>
  
  <p>"JAVA_HOME should point to a JDK not a JRE" </p>
  
  <p>I know there are already similar question but it did not work. How can I point JAVA_HOME to JDK in windows. I am using IntelliJ IDEA</p>