title: Tomcat 6 JAVA_HOME
body: <p>I try to set the JAVA_HOME path as my Tomcat server is looking for it. I am trying to set it but it doesn't seem to work and causes an error when I do. I am trying to set the JAVA in the setclasspath.bat using</p>
  
  <pre><code>set JAVA_HOME="C:\Program Files (x86)\Java\jre7"
  </code></pre>
  
  <p>This is at the start of the setclasspath.bat</p>
  
  <pre><code>set JAVA_HOME="C:\Program Files (x86)\Java\jre7"
  if not "%JAVA_HOME%" == "" goto gotJdkHome
  if not "%JRE_HOME%" == "" goto gotJreHome
  echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
  echo At least one of these environment variable is needed to run this program
  goto exit
  </code></pre>
  
  <p>When I set this and run "startup.bat start" it displays </p>
  
  <blockquote>
    <p>Files was unexpected at this time</p>
  </blockquote>
  
  <p>Can you help me?</p>