Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Tomcat running as NT service can't locate JNI DLLs

Mark

2004-02-14


I have a web app that utilizes various 3rd party/in-house JNI DLLs, but
System.loadLibrary() fails to locate them only when Tomcat 4.1 is run as a
service under Win2k. Two odd surrounding issues:

(a) Tomcat is run from Drive D:, the DLLs are located drive D:\myDLLs and
the system PATH has D:\myDLLs directory in it.
(b) Running Tomcat in console mode _works_ with the DLLs in D:\myDLLs.
(c) Running Tomcat as a service fails however...but if I simply move the
DLLs to C:\myDLLs it works.

So, on the surface it seems to be ignoring the drive prefix in the
PATH. I've tried un-installing, then re-installing the Tomcat service
using the '-path' option pointing to D:\myDLLs directory, but it still
fails. I have a feeling I'm missing something fundamental, but I'm just
not seeing it.

Has anyone dealt with this before?

Thanks in advance
Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.