开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜