Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling a C, C++ program from Java

Tags:

java

c++

c

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..

Thanks

like image 684
M.J. Avatar asked Nov 18 '25 14:11

M.J.


1 Answers

Yes, it's possible using the Java Native Interface.

like image 187
Brian Kelly Avatar answered Nov 20 '25 02:11

Brian Kelly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!