I tried to invoke C++ function in
Java. I have created the JNI interface and the signature of the native method is as follows:
JNIEXPORT void JNICALL Java_mmm_XXX
(JNIEnv *, jclass, jint, jobject, jstring, jobject, jobject);
I need convert the passed parameter jobject (which is a java.lang.List) object to a c++ List type so that it can be passed to the C++ method YYY which actually does the work.
I also need convert the return value of YYY from C++ List to JAVA jobject of java.lang.List type.
I know how to convert
String, array from what I learned from Java tutorial, but have no clue about more complex types.
I really appreciate your help.