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