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

前端 未结 7 2071
野的像风
野的像风 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 00:51

    Indeed, JNA looks impressive, it requires less effort than directly using JNI. But in any case you'd lose the platform independence, and since you're probably only using a small part of it, you might consider translating what you actually need.

提交回复
热议问题