I am using Java native function -
public native ArrayList<String> parseXML(); In C++ my native function -
vector<string> resultList; JNIEXPORT jobject JNICALL Java_Sample1_parseXML (JNIEnv *env, jobject obj){ // logic return resultList; // here getting error } My problem is that how to convert resultList (vector type) to jobject type?