title: Cannot Execute a EXE file If Tomcat Running as a service in java
body: <p>I am using <strong>Apache tomcat (7.0.39)</strong> to run my java web application . 
   In that application I am calling the executable file . It is working well if I start the Tomcat using 
   <code>Startup.bat</code> . If I start Tomcat as a service , Executable file doesn't run and windows shows </p>
  
  <pre><code>"Exe file encoutered a problem . We are sorry for the inconvenience caused" 
  </code></pre>
  
  <p>I need this because tomcat starts during Windows startup. If I start the Tomcat using <code>Startup.bat</code> , then the command prompt opens and it doesn't exit. It remains open . Anyone give solution ?</p>