tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sriram Saroop" <>
Subject Specifying -Djava.library.path when tomcat is running as a service
Date Wed, 21 Feb 2007 11:39:19 GMT
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:
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
Also I cannot seem to specify :
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 ?


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