Hey Folks, We have a C++ SDK that we HAVE to integrate using JNI. We are able to create a console Java app that works perfectly (and beautifully) using JNI and our C++ SDK. When we wrap this up in servlets and attempt to run it within Tomcat 5.0.28, we get an UnsatisfiedLinkError:
java.lang.UnsatisfiedLinkError: nativeMethod com.mv.jni.MyNewString.nativeMethod(Native Method) com.mv.jni.MyNewString.test(MyNewString.java:6) com.mv.HelloWorldExample.doGet(HelloWorldExample.java:46) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) The stack trace above is actually from a highly oversimplified "Hello World" prototype example (which also works in its console app form but not servlet form). We have checked and doubled checked everything - static initializer for the *.dll (did I forget to mention this is in Windows?) and the -Djava.library.path=C:\tomcat\shared\lib. There must be something we are overlooking which will get this to work within Tomcat. Does Tomcat prevent native code from being loaded or accessed? Has anyone run across this problem before or know how to fix it? Any tutorials??? Thanks Joe --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]