How to call C from Java?

I want to call a C method from Java I read about JNI, but I didn't get how to get all the library files. I should keep it so that I can run the program from the command line

Is there any way to call C methods from eclipse itself because I'm using it to run Java classes

Solution

Although I used to use JNI - C bridging (only a little) – it might be a little ugly You may need to consider using swig to help you generate all the messy boiler board code

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>