I use Tomcat 5.0.16 and attempt to call natives methods from one of my DLL by JNI (works fine outside tomcat).
I follow these steps :
1) I put -Djava.library.path=/path/to/dll in CATALINA_OPTS environement variable.
I use System.loadLibrary("mylib") in a static context of a "load-on-startup" servlet.
> It works, no UnsatisfiedLinkError
2) I call dll "mapped" method from another servlet get method > Every request end with a java.lang.UnsatisfiedLinkError: myMethodName
Can somebdy point me in the right direction? (documentation, howto to use JNI under tomcat)
In Tomcat 5 release notes i read that to avoid to load several time the same native library,
i have to place my classe that load native libraries outside of the web application.
How i do that ? put it in directory like common/classes but some method must be implemented ?
thks for help
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
