title: How do i properly set my JAVA HOME environment variable for Spring Tool Suite?
body: <p>I keep getting the following error message when opening <code>Spring Tool Suite</code> with a <code>Roo</code> project open.</p>
  
  <p>With previous projects i did not have this problem. So, it might have something to do with <code>Roo</code>?</p>
  
  <blockquote>
    <p>Message: Warning: The environment variable HOME is not set. The following directory will be used to store the Git user global
    configuration and to define the default location to store
    repositories: 'C:\Users\Media Markt Apeldoor'. If this is not correct
    please set the HOME environment variable and restart Eclipse.
    Otherwise Git for Windows and EGit might behave differently since they
    see different configuration options. This warning can be switched off
    on the Team > Git > Confirmations and Warnings preference page.</p>
  </blockquote>
  
  <p>But my environment variable(both User and System) is set as follows, pointing to my JDK directory:</p>
  
  <p>Variable name: <code>JAVA_HOME</code>
  Variable value: <code>C:\Program~1\Java\jdk1.8.0_91</code></p>
  
  <p>and my JDK is here:
  <code>C:\Program Files\Java\jdk1.8.0_91</code></p>
  
  <p>So, the "~1" should be fine in the value of the variable.</p>
  
  <p>For setting the environment variable i followed this site to the letter:
  <a href="https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html" rel="nofollow">https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html</a></p>
  
  <p>I have added this info to my question:
  When i look into the session data of this program Spring Tool Suite i see the following which confuses me know since i have a 64 bit -system.eclipse.buildId=3.8.0.201606301029-RELEASE-e46</p>
  
  <p>java.version=1.8.0_91</p>
  
  <p>java.vendor=Oracle Corporation</p>
  
  <p>BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US</p>
  
  <p>Framework arguments:  -product org.springsource.sts.ide</p>
  
  <p>Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide</p>