I am now trying to get the JNA jar that I created to work with our java application.
I extracted the distribution jar (jna-4.1.0.jar) and then substituted the Linux shared library that I built from the JNA source (com/sun/jna/linux-x86-64/libjnidispatch.so).
Created a new jar where the only difference is this shared library file.
The manifest dir/file and everything else is the same as the original.
It finds the shared library from the new jar but then shows an error.
I have tried adding "jna.nosys=true", but no change.
Below is the logged error.
Not sure what else to do???
---------------------------------------------------
Found library resource at jar:file:.../jna-FROM-SOURCE.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Trying .../apache-tomcat-7.0.8/temp/jna-3506402/jna3353312873281828838.tmp
Found jnidispatch at .../apache-tomcat-7.0.8/temp/jna-3506402/jna3353312873281828838.tmp
There is an incompatible JNA native library installed on this system
(at .../apache-tomcat-7.0.8/temp/jna-3506402/jna3353312873281828838.tmp).
To resolve this issue you may do one of the following:
- remove or uninstall the offending library
- set the system property jna.nosys=true
- set jna.boot.library.path to include the path to the version of the
jnidispatch library included with the JNA jar file you are using
---------------------------------------------------
nor...@msn.com