You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/06/10 15:18:19 UTC

DO NOT REPLY [Bug 29494] New: - No way to set PATH when running as a service on Windows

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29494

No way to set PATH when running as a service on Windows

           Summary: No way to set PATH when running as a service on Windows
           Product: Tomcat 5
           Version: 5.0.25
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Native:Packaging
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bim2003@basistech.com


The Sun JRE has a quirk: if you specify the location of a JNI DLL on Windows 
with -Djava.library.path, and that library has dependent libraries, the 
location you specify has to be in PATH. It's not good enough to just have it 
in -Djava.library.path. This strikes me as a defect in the JRE, but that's 
life.

When launching tomcat5 from a command line with catalina.bat, you can solve 
this problem with setenv.bat, by added a PATH setting to that file. No Such 
Luck when using the nice GUI to set up a Win32 service. It would be more 
better if there was a way to specify the PATH for the service mechanism.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org