A native method is a Java method (either an instance method or a class
method) whose implementation is written in another programming language such as C.
The lessons in this trail show you how to integrate native methods into your
Java classes.
Note: Currently, the Java language only provides a mechanism for integrating C code into
Java programs; thus the lessons on this trail focus on writing native methods in C.
Step By Step
walks you step by step through a very simple example (the "Hello World!" of
native methods) that shows you how to call a C method from a Java program. The C function
accepts no arguments and returns no value.
Comprehensive Example
is a complete programming example that
implements a "character-replacement" program.