fixed jni functions, not working however
JNI calls working again!