title: How to pass parameters between JNI and DLL files implemented by C++
body: <p>the following code is declared in JAVA</p>
  
  <pre><code>private native static Vector&lt; Double &gt; computeSimXML(Vector &lt; String &gt; vDocsPath);
  </code></pre>
  
  <p>I want to pass the parameter vDocsPath ( defined as Vector &lt; String >) into C++, the code generated by JNI is as follows:(I have implemented some)</p>
  
  <pre><code>/*
   * Class:     SimXMLModule
   * Method:    computeSimXML
   * Signature: (Ljava/util/Vector;)Ljava/util/Vector;
   */
  JNIEXPORT jobject JNICALL Java_SimXMLModule_computeSimXML
    (JNIEnv *, jclass, jobject)
  {
     vector&lt;double&gt;  dist;
  
     dist.push_back(5.0);
     dist.push_back(6.0);
  
  }
  </code></pre>
  
  <p>How can I get the value of <code>vDocsPath</code> through  <code>jobject</code>, and return dist ( defined as <code>Vector&lt; Double &gt;</code> in JAVA) to JAVA?</p>