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

Reply via email to