C++/Java interface

Joined
8/4/08
Messages
2
Points
11
Hello,

One of our customers needs to interface C++ libraries within a Java framework.

There are several options to do this: JNI or http://swig.sourceforge.net (used by Quantlib).

Did anyone tried these solutions ? What's your experience ?

Kind regards,

Frederic
 
I have used JNI. It works but you have to keep in mind the memory model. I have heard a lot of good things about SWIG but I've never used it myself.

What do you plan to do? What kind of library are you planning to expose?
 
the main issue I have had in tha past is passing objects between different memory spaces. Things need to be passed between two different memory spaces and in one of them, Java, you have little control because of garbage collection.
 
Back
Top Bottom