title: JAVA_HOME does not point to the JDK.(Spring Tool Suite)
body: <p><code>JAVA_HOME</code> does not point to the JDK.(Spring Tool Suite)</p>
  
  <p>I am getting  an error while running Spring Tool Suite(3.9.5.RELEASE) as</p>
  
  <pre><code>org.apache.tools.ant.BuildException: Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK.
  It is currently set to "C:\Program Files\Java\jre1.8.0_181"
  </code></pre>
  
  <p>As i already set the java path in Environmental Variable-->System variables as
  Variable Name : <code>JAVA_HOME</code> and 
  Variable Value : <code>C:\Program Files\Java\jdk1.8.0_131</code></p>
  
  <p>and in Environmental Variable-->user variables as</p>
  
  <p>Variable Name : <code>path</code> and 
  Variable Value : <code>C:\Program Files\Java\jdk1.8.0_131</code></p>
  
  <p>and in my C:\Program Files\Java\ drive there is jdk1.8.0_131 and jre1.8.0_181.</p>
  
  <p>I set the <code>path</code> properly to JDK, also I restarted the application too, even restarted the Computer too, still I am getting the same error again.</p>
  
  <p>Is there any other solution to avoid such error?</p>