Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Native Interface (JNI) and Java Native Access (JNA)

811242May 12 2011 — edited May 12 2011
Hello,

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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2011
Added on May 12 2011
2 comments
443 views