title: how to pass java class instance as a parameter to JNI method?
body: <p>I'd like to pass java class object to JNI method,
  And I want to call few methods in JNI method like below.</p>
  
  <p>Is there anyone who have some example like below?</p>
  
  <pre><code>class JavaClassParameter{
      void javaMethodTobeCalledInJNI(){
          ...java source...
      }
  }
  
  class MainJavaClass{
      void somemethod(){
          JavaClassParameter object = new JavaClassParameter();
          JNIMethod(object);
      }
  
      native void JNIMethod(JavaClassParameter object);
  }
  
  
  // C++ code
  void JNIMethod(object){
      object-&gt;javaMethodTobeCalledInJNI();
  }
  </code></pre>