How to resolve UnresolvedExternal exceptions while deploying jni apps in Tomcat

Cause:
UnresolvedExternal errors are caused in JNI applications when the class files tries to reference a native method in a shared object or dll and is unable to find the dll.

Solution:
  • Find out Tomcat's current java.library.path
  • Copy your application dlls to this path
  • The jars would remain within the application's war file
  • The dlls need not be along with the application jars

0 comments:

Post a Comment