Static linking with JNI-Libs possible?

Mohan Embar
Tue Apr 15 21:28:00 GMT 2003

Hi Clemens,

As far as I know, JNI is totally geared towards shared libraries.

However, with GCJ, you can statically link using CNI, which is
explained a bit in the FAQ:

In my opinion, CNI is less cumbersome and more natural than JNI.
This works with mingw32 because libgcj uses it too.

-- Mohan

More information about the Java mailing list