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?
You would have to create a wrapper for the ArrayList in C++. Something like:
for further information see:
http://download.oracle.com/javase/1.4.2/docs/guide/jni/spec/functions.html