Previous

Java Native Interface: Table of Contents

Overview of the JNI
JNI Concepts
Writing Java Programs with Native Methods
Step 1: Write the Java Code
Step 2: Compile the Java Code
Step 3: Create the .h File
Step 4: Write the Native Method Implementation
Step 5: Create a Shared Library
Step 6: Run the Program
Integrating Java and Native Programs
Declaring Native Methods
Mapping Between Java and Native Types
Interacting with Java from the Native Side
Accessing Java Strings in Native Methods
Working With Java Arrays in Native Methods
Calling Java Methods
Accessing Java Fields
Handling Java Errors from Native Methods
Local and Global References
Threads and Native Methods
JNI Programming in C++
Invoking the Java Virtual Machine
Summary


Previous