I have a web project with some native libraries. Most of them are loaded by JNA library.
I put them in this folder
WEB-INF\classes\*.dll
of a ROOT package.
When the application starts they are loaded by Tomcat in
${catalina.home}\webapps\ROOT\WEB-INF\classes\mylibrary.dll
All libraries are founded by JNA and work, however there is just one library managed by third parties (Zebra Multilink platform SDK) that I cannot load from that folder. Maybe because it doesn't work with JNA but with JNI. If I move that libraries to
${catalina.home}\bin
that is the folder defined by java.library.path param in tomcat start command it works!
Can I distribute libraries in ROOT.war package and set tomcat to look into all my applications to find native libraries?