title: How to find where Tomcat is install/running from when it is not installed as a service
body: <p>I'm trying to determine the Tomcat install directory when it is started from startup.bat in Windows.</p>
  
  <p>It is easy enough to determine where tomcat7.exe is running when Tomcat is running as a service, but I'm not sure how to do it when it's started with the script.  I know java is running when Tomcat is started from the script, but the executable path is for the java jre.  Is there something I can do to find where catalina is running based on java?</p>