JNA native support (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path

前端 未结 5 1225
北海茫月
北海茫月 2021-01-02 19:16

I have started to build a java service which incorporates JNA to load a native C/C++ lib and i want to run the java service on the Raspberry PI aka arm platform. I have succ

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-02 19:33

    I am re-compiling Apache Spark for RPI2 and I've spent a couple of days to fix the issue. Then I've found the easiest possible solution. All you need to have is a libjnidispatch.so link in your default JVM's native lib path.

    sudo -s ln -s /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.so /usr/lib/jvm/default-java/jre/lib/arm/libjnidispatch.so
    

提交回复
热议问题