I am developing a JNI application. However JNINativeInterface_ * inside the struct struct JNIEnv_
is null, hence causing any call for JNI (example : env->NewStringUTF(...)
) functions to throw a segmentation fault error. JNIEnv_
struct looks like this :
struct JNIEnv_ {
const struct JNINativeInterface_ *functions;
.
.
.
I honestly dont know how to fix this, as I think java is supposed to fill this when you make a call to System.loadLibrary(...)
. I appreciate any help.