开发者

Calling a C, C++ program from Java

开发者 https://www.devze.com 2023-03-12 16:06 出处:网络
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..

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

精彩评论

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