My question is simple, how can I instantiate Java objects on C++ (though JNI) and return an array of those created objects?
Something like:
jclass cls = g_jniEnv->FindClass("Lbr/com/iba/model/Annotation;");
jmethodID meth = g_jniEnv->GetMethodID(cls, "setBookmark1", "(Ljava/lang/String;)V");
How I instantiate this cls object and call methods then return it from this method?