Static linking with JNI-Libs possible?

Mohan Embar gnustuff@thisiscool.com
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:

http://gcc.gnu.org/java/faq.html

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

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/






More information about the Java mailing list