I am trying to make
this library and I am following instructions in Maven paragraph. However, I fail on step
make clean all
with the following error:
ObjectManager.c:35:17: fatal error: jni.h: No such file or directory
#include <jni.h>
So, following answers from this question and this question I am trying to add the location of jni.h
file to compiler flags. In my case, this file is located in
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include
What I have tried so far:
make -I/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include clean all
make -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" clean all
export JAVA_INCLUDE_DIR=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include
In short, none of the proposed solutions worked and makefile still fails with the same error. How to solve this?