Java calling c++ method
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3720563/access-c-shared-library-from-java-jni-jna-cni-or-swig">Access C++ shared library from Java: JNI, JNA, CNI, or SWIG?</a><br>
  <a href="http://stackoverflow.com/questions/6325996/calling-a-c-c-program-from-java">Calling a C, C++ program from Java</a>  </p>
</blockquote>



<p>Is there anyway I could call a c++ method from Java. I have a c++ method in an application that transforms data and I would like the same transformation of data in Java. I am trying to rewrite the code but I was checking if I could somehow send input and get output from the current c++ code. Thanks.</p>
