参考:https://stackoverflow.com/questions/13466777/jni-h-no-such-file-or-directory
例如:
gcc TestNative.cpp -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -fPIC -shared -o testnative.so
gcc在Linux下编译so文件出错 jni.h: no such file or directory
原文:http://www.cnblogs.com/kemp-blogs/p/7275214.html