Java Native Interface: Programmer’s Guide and Specification

Java Native Interface: Programmer's Guide and Specification

This book is the definitive resource and a comprehensive guide to working with the JNI. Entirely up-to-date, the book offers a tutorial, a detailed description of JNI features and programming techniques, JNI design justifications, and the official specification for all JNI types and functions.


This book covers the JavaTM Native Interface (JNI). It will be useful to you if you are interested in any of the following: integrating a Java application with legacy code written in languages such as C or C++, incorporating a Java virtual machine implementation into an existing application written in languages such as C or C++, implementing a Java virtual machine, understanding the technical issues in language interoperability, in particular how to handle features such as garbage collection and multithreading.

Table of Contents

  • Introduction
  • Getting Started
  • Basic Types, Strings, and Arrays
  • Fields and Methods
  • Local and Global References
  • Exceptions
  • The Invocation Interface
  • Additional JNI Features
  • Leveraging Existing Native Libraries
  • Traps and Pitfalls
  • Overview of the JNI Design
  • JNI Types
  • JNI Functions

Book Details

Author(s): Sheng Liang
Publisher: Sun Microsystems
Format(s): HTML
Number of pages: 320
Link: Read online.

Leave a Reply