GlueGen C++

Hi, I have a C++ library that I need to bind to java?

I tried searching this question out but with no luck. I know it says that GlueGen will work on C Header files I was just wondering if there is another utility (or GlueGen) that will bind C++ objects to Java! where it generates java objects that will act as proxy.

thanks

Unless I’ve misunderstood the question, can’t you use JNI to do this sort of thing?

Sure. But he’s asking for a tool to generate the needed JNI source code :slight_smile:
I used SWIG in some projects, but it’s not really nice. There are better suggestions, I assume.

Thanks irrisor, i saw SWIG and it seems powerfull, but this API is very general and doesnt handle all the options and possibilities. I am looking for a tool that is like GlueGen that is “specialized” for C++ to Java were the interaction is optimized (Performance is a big issue for my project).

As for using JNI directly, this is an option but is not optimal cuz it will take lot of development time and will need to be changed everytime the C++ library is updated. And since we are developing for production this wont be a good track.