RE: Tomcat loading dlls
Just one thing I forgot to ask. Using the PATH Variable works fine when starting the Tomcat from a command shell. Nevertheless if I start the Tomcat from within Eclipse (MyEclipse), it does not care if the directory is specified in the PATH or not. The DLL is not being loaded. In order for it to work I have to append the directory to the "library path" when starting the Tomcat from within Eclipse. Why is this so? Am I doing something wrong? I mean it is the same Tomcat. Just once started from within Eclipse. Thanks in Advance! Stefan StrongSteve wrote: > > Using the PATH Variable worked fine. > > Just some quick questions for a better understanding: > > If a Java program calls System.loadLibrary("XXX"), are all directories > specified by the PATH varibale searched for a DLL called XXX? In case > there are more directories specified that do contain a DLL called XXX, > which one is taken? The first occurence specified in the PATH Variable, > the last one? > > Can anyone explain the difference between PATH, CLASSPATH and > java.library.path. I am a little stuck on when to use use which property. > > Thanks in Advance for your time! > > Greetings > Stefan > > > n828cl wrote: >> >>> From: StrongSteve [mailto:ste...@starkeweb.org] >>> Subject: Tomcat loading dlls >>> >>> Do I place the needed dlls into another directory and alter an >>> environmental variable (f.e. java.library.path, PATH, CLASSPATH, >>> ...) or do i alter catalina.bat/startup.bat? >> >> Since you're on Windows, the easiest approach is just to insure the DLLs >> are somewhere in the PATH - if you're running Tomcat from the .bat >> scripts. If you want to modify the PATH variable to include an >> additional directory, do that with setenv.bat; don't modify catalina.bat >> or startup.bat. >> >> If you're running Tomcat as a Windows service, set the java.libary.path >> system property in the Java tab of the tomcat?w.exe program to point to >> the directory where the DLLs are. (Fill in the ? with the level of >> Tomcat you're using - which you didn't tell us.) >> >> - Chuck >> >> >> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >> MATERIAL and is thus for use only by the intended recipient. If you >> received this in error, please contact the sender and delete the e-mail >> and its attachments from all computers. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> > > -- View this message in context: http://old.nabble.com/Tomcat-loading-dlls-tp27703944p27714139.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat loading dlls
Using the PATH Variable worked fine. Just some quick questions for a better understanding: If a Java program calls System.loadLibrary("XXX"), are all directories specified by the PATH varibale searched for a DLL called XXX? In case there are more directories specified that do contain a DLL called XXX, which one is taken? The first occurence specified in the PATH Variable, the last one? Can anyone explain the difference between PATH, CLASSPATH and java.library.path. I am a little stuck on when to use use which property. Thanks in Advance for your time! Greetings Stefan n828cl wrote: > >> From: StrongSteve [mailto:ste...@starkeweb.org] >> Subject: Tomcat loading dlls >> >> Do I place the needed dlls into another directory and alter an >> environmental variable (f.e. java.library.path, PATH, CLASSPATH, >> ...) or do i alter catalina.bat/startup.bat? > > Since you're on Windows, the easiest approach is just to insure the DLLs > are somewhere in the PATH - if you're running Tomcat from the .bat > scripts. If you want to modify the PATH variable to include an additional > directory, do that with setenv.bat; don't modify catalina.bat or > startup.bat. > > If you're running Tomcat as a Windows service, set the java.libary.path > system property in the Java tab of the tomcat?w.exe program to point to > the directory where the DLLs are. (Fill in the ? with the level of Tomcat > you're using - which you didn't tell us.) > > - Chuck > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Tomcat-loading-dlls-tp27703944p27714134.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat loading dlls
Hi Everybody, I have a web application deployed into tomcat which needs some dlls during execution. These dlls are being included in the java code statically and use system.loadlibrary(...) to be loaded. If I place the needed dlls into Tomcat's bin directory they are found and loaded successfully during startup. Now I know that this is not regarded as a good practice. So my question is. What is the best practice? What is the best way to go? Do I place the needed dlls into another directory and alter an environmental variable (f.e. java.library.path, PATH, CLASSPATH, ...) or do i alter catalina.bat/startup.bat? Seriously, what is the prefered solution? Thanks in Advance for your time! Stefan -- View this message in context: http://old.nabble.com/Tomcat-loading-dlls-tp27703944p27703944.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6 + Native Library + HTTPS
Hi Everybody! Can anyone tell me - or give me a resource - on how to configure SSL in Tomcat 6 with an installed Native Library? I did it as usual in the following way: But Tomcat refuses to start up. As soon as I remove the Native Library, these settings work perfect. Where and How am I getting wrong? Thanks in Advance for both your time and your knowledge! Greetings Stefan -- View this message in context: http://www.nabble.com/Tomcat-6-%2B-Native-Library-%2B-HTTPS-tp19452525p19452525.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]