title: How to build with correct JDK using Ant
body: <p>I have followed a lot of guides on how to do this, but I am still getting an error. I want to build with C:\Program Files\Java\jdk1.8.0_112</p>
  
  <p>but every time I run my script it is giving me an error saying:</p>
  
  <p>"Perhaps JAVA_HOME does not point to the JDK. It is currently set to C:Program Files\Java\jre1.8.0_112"</p>
  
  <p>I have changed my environment variables and added a new
  JAVA_HOME
  with the path "C:\Program Files\Java\jdk1.8.0_112"</p>
  
  <p>but it is still giving me an error. any idea why this isn't working? I am using an ant script and this is also on a windows remote desktop connection.</p>