Use JNI instead of JNA to call native code?

后端 未结 10 2078
滥情空心
滥情空心 2020-11-28 18:42

JNA seems a fair bit easier to use to call native code compared to JNI. In what cases would you use JNI over JNA?

10条回答
  •  独厮守ぢ
    2020-11-28 19:07

    Unless I'm missing something, isn't the main difference between JNA vs JNI that with JNA you can't call Java code from native (C) code?

提交回复
热议问题