title: Can't open Tomcat startup
body: <p>I can't seem to open up the Tomcat console despite having <em>just</em> been able to successfully do so. When I click on the "startup" Windows Batch File, the console opens then closes itself immediately afterwards. I've read that it has something to do with setting up the environment variables / paths correctly but I've looked at it and it seems fine; you can check the picture out. </p>
  
  <p><a href="https://i.stack.imgur.com/jNEpQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jNEpQ.jpg" alt=""></a>NOTE: Over the course of step 6, the javac command did not work for me. To fix I added a second "C:\Program Files..jdk1.8.0_131\bin" into the Path variable (as you can see in the picture. This enabled me to use the javac command but I have no idea why it didn't detect the JAVA_HOME.</p>
  
  <p>Trying to run startup via cmd console outputs the message: D:\myProject\tomcat\bin>startup
  The JRE_HOME environment variable is not defined correctly
  This environment variable is needed to run this program</p>
  
  <p>I'm still a beginner with server management so I've been following this tutorial: <a href="https://www.ntu.edu.sg/home/ehchua/programming/howto/Tomcat_HowTo.html" rel="nofollow noreferrer">https://www.ntu.edu.sg/home/ehchua/programming/howto/Tomcat_HowTo.html</a>. I'm at the end of step 6c) where it tells me I should restart the server after compiling an servlet and creating an xml. But lo and behold, it won't open again after quitting...</p>