Can you help me compile the GCC for JNI in Ubuntu ? What happens is that when creating the . "So" , and compile by calling the necessary libraries, in my case (for the Java version I use) ...
gcc -shared -I/usr/lib/jvm/java-8-oracle/include/ -I/usr/lib/jvm/java-8-oracle/include/linux/ -o libHolaMundo.so HolaMundo.c -Wall
... I get the error that:
In file included from HelloWorld.c: 3: 0:
HolaMundo.h: 2: 17: fatal error: jni.h: No such file or directory
#include <jni.h>