Static linking with JNI-Libs possible?
Erik Poupaert
erik.poupaert@chello.be
Wed Apr 16 04:23:00 GMT 2003
>>>>> http://gcc.gnu.org/java/papers/cni/t1.html
By the way, the entire native support in gcj/libjava is built on CNI.
All of the nat*.cc files that you find in libjava/java.lang, java.net, and
so on are native CNI counterparts.
For example, in java.lang, you will find the native method counterparts for
StringBuffer.java in natStringBuffer.cc. There is some very re-assuring
logic in how it's built up; and it is very readable. You can't misunderstand
what's going on.
You'll probably get the gist more easily by looking at these nat*.cc than by
reading the papers. Or put it differently, once you've browsed through these
sources, the papers will be very easy to read.
More information about the Java
mailing list