title: Return object from java native method
body: <p>I would like to call a method through a native java interface, which returns an object.</p>
  
  <p>This is my native method</p>
  
  <pre><code>public native Node getProjectionPoint(double lat, double lon);  
  </code></pre>
  
  <p>Node class</p>
  
  <pre><code> public class Node {        
      private String id;
      private double latitude;
      private double longitude;
  }
  </code></pre>
  
  <p>C header file   </p>
  
  <pre><code>JNIEXPORT jobject JNICALL Java_org_smartcar_serverdatainterface_shared_services_CppConnector_getProjectionPoint (JNIEnv *env, jobject obj, jdouble lat, jdouble lon);
  </code></pre>
  
  <p>How could I create an object and return it to java?</p>