title: How to change JAVA.HOME for Eclipse/ANT
body: <p>I am trying to sign a jar file using an ANT script. I know this has to be pointed at the JDK directory for <code>jarsigner.exe</code> to run, but when I echo java.home it returns the JRE directory. </p>
  
  <p>This isn't a problem for javac, because I can set the executable path. But, that does not exist for signjar. </p>
  
  <p>How do I change the java.home path? When I right-click on MyComputer and go to:</p>
  
  <blockquote>
    <p>Properties > Advanced > Environment Variables</p>
  </blockquote>
  
  <p>The "PATH" variable is correctly pointed to the JDK (<code>C:\program files\java\jdk\bin</code>).</p>
  
  <p><strong>Update</strong>: The file now signs correctly after changing the PATH variable suggested below. </p>