Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sun jna library with support for arm 64

Tags:

jna

Where can I get a JNA library with support for ARM64? The com.sun.jna_4.jar includes the native libjnidispatch.so library for ARM, but not for ARM64.

I'm getting an exception saying:

UnsatisfiedLinkError: Native library
(com/sun/jna/linux-aarch64/libjnidispatch.so) not found in resource path.
like image 550
Sasha Epstein Avatar asked Nov 10 '22 16:11

Sasha Epstein


1 Answers

Download the android-aarch64.aar file from below link, https://github.com/java-native-access/jna/tree/master/lib/native

Unzip it, you will get libjnidispatch.so.

In your App jniLibs folder, create a folder /arm64-v8a and put the .so file there. jniLibs/arm64-v8a/libjnidispatch.so

like image 117
Weidian Huang Avatar answered Dec 16 '22 04:12

Weidian Huang