6.7. Onward

Very few software systems build on only one technology, so interoperability is key to the success of large projects. JNI provides a low-level, in-process model for interoperation between Java and systems code written in C or C++. Studying JNI is a valuable way to learn about both C++ and Java because JNI has to deal with how the language worlds differ. JNI provides a mapping from Java types to a dynamic, metadata-driven, handle-based, C-callable API.

JNI provides a dynamic loading architecture for native code that is a stripped-down version of Java's powerful class loader architecture. JNI provides APIs to make Java exceptions, arrays, and strings usable from native code, and it copes with the fact that these constructs do not naturally ...

Get Component Development for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.