Question

i am working on a RFID based project in which we should communicate with Gates(RFID tag reader is called a GATE) through our application (and we are using java 2 ee to do this). the problem is the Gates are only shipping with c# and c++ SDK. what is your solution to communicate between c++ / C# and java? is there any so called convertor that can ease the pain? and this is the Gates manufacturer website if you need any more info : http://www.marktrace.com/en/default.html

thank you all.

Was it helpful?

Solution 3

JNI - Java Native Interface - You can use it to call C++ code from Java. http://docs.oracle.com/javase/6/docs/technotes/guides/jni/

Here is a tutorial.

OTHER TIPS

You are searching for the Java native interface which allows you to communicate with other libraries.

You can either call methods from an external DLL and call Java methods from within your C++ code.

You can use jni4net to have a bridge to .NET libraries as well.

Besides using the JNI that the other answers mention, I was writing a similar program for collage and we just wrote a C# client that talked to the library then bridged the gap to java by writing a simple TCP server in C# that the main java app talked to.

Java Native Interface is what you need. There are also couple of alternatives and specific libs

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top