Java Native Interface (JNI) and Java Native Access (JNA)
811242May 12 2011 — edited May 12 2011Hello,
I'm trying to find a way to use a C++ library (http://www.opensg.org/, class documentation http://www.opensg.org/htdocs/doc-1.8/annotated.html) in a Java environment.
So far I have found JNI and JNA, but from my reading investigation they do not seem to allow mapping between C++ and Java classes/objects.
Since I have no experience on this before, could someone confirm whether this is true?
Which API/framework would you recommend for this case?
It would be really nice if I could, in the Java environment, pass in Java objects as parameters to invoke C++ functions and then receive Java objects back as a result.
Any hints on this are highly appreciated!