Hello!
Saw many different topics but none really that seemed to point to an issue after the dispatcher was initialized... So I had to create a new topic :(
I tried also to rename the libc library... nothing.
Here is what happens when I run my code:
Looking in classpath from java.net.URLClassLoader@17327b6 for /com/sun/jna/linux-arm/libjnidispatch.so
Found library resource at jar:rsrc:jna-4.3.0-20161231.172136-8.jar!/com/sun/jna/linux-arm/libjnidispatch.so
Trying /tmp/jna-3506402/jna1269380311245223573.tmp
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /tmp/jna-3506402/jna1269380311245223573.tmp: /tmp/jna-3506402/jna1269380311245223573.tmp: cannot open shared object file: No such file or directory
When I go in the tmp folder, there is nothing - not sure if normal.
The same code on my Intel machine works well (ofc, I recompiled the library I am calling for ARM)
If I try to debug with
4.2.2:
root@Pi:/home/pi# java -Djna.debug_load.jna=true -jar jna-4.2.2.jar
Trying (via loadLibrary) jnidispatch
Looking in classpath from sun.misc.Launcher$AppClassLoader@1909752 for /com/sun/jna/linux-arm/libjnidispatch.so
Found library resource at jar:file:/home/pi/jna-4.2.2.jar!/com/sun/jna/linux-arm/libjnidispatch.so
Trying /tmp/jna-3506402/jna7427852810819838509.tmp
Found jnidispatch at /tmp/jna-3506402/jna7427852810819838509.tmp
Java Native Access (JNA) API Version 4
Version: 4.2.2 (b0)
Native: 4.0.1 (1a6047467b59e8748f975e03016ce3d9)
Prefix: linux-arm
If I try to debug the latest
4.3.0root@Pi:/home/pi# java -Djna.debug_load.jna=true -jar jna-4.3.0-20161231.172136-8.jar
Trying (via loadLibrary) jnidispatch
Looking in classpath from sun.misc.Launcher$AppClassLoader@1909752 for /com/sun/jna/linux-arm/libjnidispatch.so
Found library resource at jar:file:/home/pi/jna-4.3.0-20161231.172136-8.jar!/com/sun/jna/linux-arm/libjnidispatch.so
Trying /tmp/jna-3506402/jna3266768890158249845.tmp
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/jna-3506402/jna3266768890158249845.tmp: /tmp/jna-3506402/jna3266768890158249845.tmp: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:906)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:881)
at com.sun.jna.Native.<clinit>(Native.java:156)
In both versions however the issue when running my code is the same.Anybody have found a solution?