我在java中有一个类,我需要将此类的对象作为参数传递给JNI,并且还能够从jni中返回值作为java中类的Object

例如:

test.java

class Student {
    int a;
    long b[];
   }

jni.c

Student Struct
{
int a;
long *b;
}student;`



JNIEXPORT jint  Java_TestJNI_Process(JNIEnv *jEnv, jobject studentJavaObject){
student = studentJavaObject // How to map ?? 


 //.....do some processing on student...

//make effect on studentJavaObject
return studentJavaObject;
}
`