You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version and vendor of the java virtual machine ----> 1.8.0_351
Operating system ----> QNX
System architecture (CPU type, bitness of the JVM) ----> ARM® Cortex™-A8
Complete description of the problem
In QNX, I am trying to load a .so file built from a C/C++ project, and I get the following error at the call to the Structure class before loading the library created in JNA.
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/qnx-aarch32/libjnidispatch.so) not found in resource path (/opt/niagara/bin/ext/annotations-13.0.jar:/opt/niagara/bin/ext/bcstd/bcpkix-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bcprov-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bctls-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bcutil-jdk15on-1.70.jar:/opt/niagara/bin/ext/encoder-1.2.3.jar:/opt/niagara/bin/ext/hsm-2.0.3.jar:/opt/niagara/bin/ext/javax.servlet-api-3.1.0.jar:/opt/niagara/bin/ext/jetty-all-compact3-9.4.48.v20220622.jar:/opt/niagara/bin/ext/jose4j-0.7.11.jar:/opt/niagara/bin/ext/kotlin-stdlib-1.4.20.jar:/opt/niagara/bin/ext/kotlin-stdlib-common-1.4.20.jar:/opt/niagara/bin/ext/niagarad.jar:/opt/niagara/bin/ext/nre.jar:/opt/niagara/bin/ext/okhttp-3.14.9.jar:/opt/niagara/bin/ext/okio-2.10.0.jar:/opt/niagara/bin/ext/slf4j-api-1.8.0.jar:/opt/niagara/bin/ext/tridium-JavaMail-1.5.2.1.jar:/opt/niagara/bin/ext/tridium-activation-1.0.jar)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1059)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1015)
at com.sun.jna.Native.(Native.java:221)
at com.sun.jna.Structure.setAlignType(Structure.java:291)
at com.sun.jna.Structure.(Structure.java:208)
at com.sun.jna.Structure.(Structure.java:204)
at com.sun.jna.Structure.(Structure.java:191)
at com.sun.jna.Structure.(Structure.java:183)
The text was updated successfully, but these errors were encountered:
Yes JNA does not support QNX. To fix this, a build environment must be accessible without charge, either provided as a remotely accessible service or (prefereably) an SDK usable on other platform (again preferable on linux linux).
The readme has the following description, is it possible to build for QNX?
JNA will build on most linux-like platforms with a reasonable set of GNU tools and a JDK. See the native Makefile for native configurations that have been built and tested. If your platform is supported by libffi, then chances are you can build JNA for it.
In QNX, I am trying to load a .so file built from a C/C++ project, and I get the following error at the call to the Structure class before loading the library created in JNA.
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/qnx-aarch32/libjnidispatch.so) not found in resource path (/opt/niagara/bin/ext/annotations-13.0.jar:/opt/niagara/bin/ext/bcstd/bcpkix-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bcprov-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bctls-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bcutil-jdk15on-1.70.jar:/opt/niagara/bin/ext/encoder-1.2.3.jar:/opt/niagara/bin/ext/hsm-2.0.3.jar:/opt/niagara/bin/ext/javax.servlet-api-3.1.0.jar:/opt/niagara/bin/ext/jetty-all-compact3-9.4.48.v20220622.jar:/opt/niagara/bin/ext/jose4j-0.7.11.jar:/opt/niagara/bin/ext/kotlin-stdlib-1.4.20.jar:/opt/niagara/bin/ext/kotlin-stdlib-common-1.4.20.jar:/opt/niagara/bin/ext/niagarad.jar:/opt/niagara/bin/ext/nre.jar:/opt/niagara/bin/ext/okhttp-3.14.9.jar:/opt/niagara/bin/ext/okio-2.10.0.jar:/opt/niagara/bin/ext/slf4j-api-1.8.0.jar:/opt/niagara/bin/ext/tridium-JavaMail-1.5.2.1.jar:/opt/niagara/bin/ext/tridium-activation-1.0.jar)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1059)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1015)
at com.sun.jna.Native.(Native.java:221)
at com.sun.jna.Structure.setAlignType(Structure.java:291)
at com.sun.jna.Structure.(Structure.java:208)
at com.sun.jna.Structure.(Structure.java:204)
at com.sun.jna.Structure.(Structure.java:191)
at com.sun.jna.Structure.(Structure.java:183)
The text was updated successfully, but these errors were encountered: