开发者

Does the GNU Java compiler support JNA?

开发者 https://www.devze.com 2023-03-29 09:11 出处:网络
I want to write a java program that uses the Windows API and that compiles to nat开发者_开发知识库ive code instead of byte code.

I want to write a java program that uses the Windows API and that compiles to nat开发者_开发知识库ive code instead of byte code.

I don't want using JNI (C, C++, ... interface) but instead want to write using pure java code and JNA.

Would the GNU Java compiler allow me to do this? Does the GNU Java compiler support use of JNA?


I believe that with the GNU Java compiler, one uses a different interface to link to native code, the CNI (Compiled Native Interface). CNI is related to JNI (Java Native Interface) framework (again, I believe).

Caveat: I have never used the GNU Java compiler nor CNI, but have used JNA and JNI.

0

精彩评论

暂无评论...
验证码 换一张
取 消