tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sriram Saroop" <sriram.sar...@gmail.com>
Subject Specifying -Djava.library.path when tomcat is running as a service
Date Wed, 21 Feb 2007 11:39:19 GMT
Hi,
I am running tomcat 4.1.34 as a Windows Service by using service.bat
My application uses JNI and the required libraries exist in 3 folders:
C:\f1,C:\f2,C:\f3
When I add the these folders in -Djava.library.path:
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.library.path=C:\f1"
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.library.path=C:\f2"
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.library.path=C:\f3"

Only the last line seems to be effective. (Meaning f1,f2 are NOT in
java.library.path).
Also I cannot seem to specify :
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions
"-Djava.library.path=C:\f1;C:\f2;C:\f3"
since tomcat fails to start. I guess this is because ; is a separator for
the -D/-X options.

Other than merging the 3 folders, is it possible to specify multiple
directories as a part of -Djava.library.path ?

Regards,
Sriram

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message