title: jre_home environment variable is not defined correctly while starting tomcat
body: <p>When I am trying to run tomcat using <code>startup.bat</code> I get the following error,</p>
  
  <pre><code>The JRE_HOME environment variable is not defined correctly
  This environment variable is needed to run this program
  </code></pre>
  
  <p>I have even tried setting JRE_HOME manually to system variable list, but this issue remains.</p>
  
  <p>My <code>JRE_HOME C:\Program Files\Java\jre1.8.0_121;</code></p>
  
  <p>What can I do to solve it?</p>
  
  <p>I am using Windows 8</p>