https://blog.csdn.net/zcy0317/article/details/52671234
fatal error: jni_md.h: No such file or directory #include “jni_md.h”
-I/home/liusf/Desktop/dev/files/jdk1.8.0_201/include/linux -I/home/liusf/Desktop/dev/files/jdk1.8.0_201/include
jni_md.h在 -I/home/liusf/Desktop/dev/files/jdk1.8.0_201/include/linux目录下
java.lang.UnsatisfiedLinkError JNI error
The missing symbol belongs to the Standard C++ library. So you have to ensure that the Standard C++ library is properly linked to your shared library.
Mostly, you can achieve it by adding -lstdc++ to linker line:
增加参数-lstdc+
gcc -I/home/liusf/Desktop/dev/files/jdk1.8.0_201/include/linux -I/home/liusf/Desktop/dev/files/jdk1.8.0_201/include Hello.cpp -fpic -shared -o Hello.so -lstdc++