title: How to install tomcat with a specific PATH under Windows?
body: <p>I have the following Code:</p>
  
  <pre><code>tomcat5.exe //IS//%SERVICE_NAME% --StartPath "%BASE_DIR%\bin" --Jvm "%JAVA_HOME%\bin\%JAVA_MODE%\jvm.dll" --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams "-config;%CONFIG%;start" --StopParams stop --Startup auto 
  tomcat5.exe //US//%SERVICE_NAME% --JvmOptions "-Dcatalina.base=%CATALINA_BASE%#-Dcatalina.home=%CATALINA_HOME%#-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed#-Xrs#-Djava.library.path=%DLL_DIR%#-DimageservicePath=%imageservicePath%" --StartMode jvm --StopMode jvm
  tomcat5.exe //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp"
  tomcat5.exe //US//%SERVICE_NAME% --JvmMx %MEMORY% --JvmMs %MIN_MEMORY%
  tomcat5.exe //US//%SERVICE_NAME% --Environment "PATH=.\;c:\path\bin"
  </code></pre>
  
  <p>I need to specify a special PATH, because some native-code loading issues.</p>
  
  <p>My problem is, that the service-installer will change provided PATH:
  <a href="http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html" rel="nofollow">http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html</a></p>
  
  <blockquote>
    <p>--Environment<br>
    List of environment variables that will be provided to the service in the form key=value. They are separated using either # or <strong><em>;</em></strong> characters</p>
  </blockquote>
  
  <p>I need to specify a Windowes PATH with two locations: <code>PATH=.;c:\path\bin</code>
  The path will be stored within the registry:</p>
  
  <pre><code>PATH=.
  c:\path\bin
  </code></pre>
  
  <p>it should be:</p>
  
  <pre><code>PATH=.;c:\path\bin
  </code></pre>
  
  <p>It works as described, so I think I missed something, but I did not find anything about how to set the PATH and solve this issue...</p>
  
  <p>PS:
  I know I'm using an outdated version of tomcat.</p>