title: Why doesn't the Java SDK installer set JAVA_HOME?
body: <p>I always wondered why I have to manually set the JAVA_HOME environment variable after installing the Java SDK.</p>
  
  <blockquote>
    <p>JAVA_HOME=c:\Program Files\Java\jdk1.6.0_12</p>
  </blockquote>
  
  <p>Visual Studio at least provides a batch file to set these kind of environment variables:</p>
  
  <blockquote>
    <p>call "c:\Program Files\Microsoft Visual
    Studio 9.0\VC\vcvarsall.bat"</p>
  </blockquote>
  
  <p>Does Java have something similar? I'm trying to make a build script that should simply work after installing the Java SDK. I don't want people to mess with environment variables on their PC.</p>