How I can call a JNI method from a servlet? I have tried, but I received the error message " java.lang.UnsatisfiedLinkError: sincro ". (sincro is my JNI method.

alberto rosa

Probably the name of the method is not the correct one in the library. Make sure you have followed the JNI standard to name the function in your C code (Java_ClassName... or something like that). Make sure also that the library version is the correct one. Regenerate the header file with javah and recompile it. Remove all conflicting libraries from your library path; just leave the new one.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact