Bug#1028374: libjna-java: JNA HelloWorld fails on aarch64
Alexandre Rossi
niol at zincube.net
Tue Jan 10 17:54:39 GMT 2023
Hi,
With -Djna.debug_load.jna=true :
niol at aarch64:~/libjna-java$ debian/tests/helloworld
Jan 10, 2023 6:46:28 PM com.sun.jna.Native loadNativeDispatchLibrary
INFO: Looking in /usr/lib/jni/libjnidispatch.system.so
Jan 10, 2023 6:46:29 PM com.sun.jna.Native loadNativeDispatchLibrary
INFO: Looking in /usr/lib/arm-linux-gnueabi/jni/libjnidispatch.system.so
Jan 10, 2023 6:46:29 PM com.sun.jna.Native extractFromResourcePath
INFO: Looking in classpath from jdk.internal.loader.ClassLoaders$AppClassLoader at 73d16e93 for /com/sun/jna/linux-aarch64/libjnidispatch.so
Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-aarch64/libjnidispatch.so) not found in resource path (debian/tests:/usr/share/java/jna.jar)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1042)
at com.sun.jna.Native.<clinit>(Native.java:221)
at HelloWorld$CLibrary.<clinit>(HelloWorld.java:8)
at HelloWorld.main(HelloWorld.java:14)
libjna search for libjnidispatch.so as:
/usr/lib/arm-linux-gnueabi/jni/libjnidispatch.system.so
but it is present on the Debian system as:
niol at aarch64:~/libjna-java$ dpkg -L libjna-jni | grep libjni
/usr/lib/aarch64-linux-gnu/jni/libjnidispatch.system.so
I suspect debian/patches/04-load-native-code-from-fs.patch needs fixing.
Cheers,
Alex
More information about the pkg-java-maintainers
mailing list