Calling a C, C++ program from Java
Is it possible to call C or C++ code from a Java Code, i can re-write the code in Java, but need to reuse the existing code..
Th开发者_StackOverflowanks
Yes, it's possible using the Java Native Interface.
I'd say that JNA or Java Native Access is easier to use. It's built on JNI, but there's no need to create a header file. Instead just call from the dll: Java Native Access
精彩评论