Amir Saniyan
Amir Saniyan

Reputation: 13759

Does the GNU Java compiler support JNA?

I want to write a java program that uses the Windows API and that compiles to native 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?

Upvotes: 3

Views: 198

Answers (1)

Hovercraft Full Of Eels
Hovercraft Full Of Eels

Reputation: 285405

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.

Upvotes: 2

Related Questions