What's the easiest way to use C source code in a Java application?

前端 未结 7 1981
野的像风
野的像风 2021-01-12 00:21

I found this open-source library that I want to use in my Java application. The library is written in C and was developed under Unix/Linux, and my application will run on Wi

相关标签:
7条回答
  • 2021-01-12 01:08

    I'd compile it and use JNA.

    JNA (Java Native Access) is basically does in runtime what JNI at compile time and doesnt need any non-java code (not much java either).

    I don't know about its performance or usability in your case but I'd give it a try.

    0 讨论(0)
提交回复
热议问题