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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…