Copyright © 2004, Aonix
44
JNI Overview
•Java programmers declare certain methods to be “native”
–Method is implemented in C code, using special macros and functions to access shared Java objects
–Mechanisms are available to “pin” certain Java objects so the native methods can directly access Java data using C pointer semantics
•Native threads can “attach” to the JVM in order to invoke Java methods and/or access shared Java objects