Previous

Using the JNI: Table of Contents

Step By Step
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
Implementing Native Methods
Declaring Native Methods
Java Types in Native Methods
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
Invoking the Java Virtual Machine
JNI Programming in C++


Previous