If you installed the java2v131_02_dev.sw.demos
subsystem, then
you have some simple examples of how to use JNI,
Sun's new Java Native Interface. They illustrate how to code native
functions using JNI and create JNI-specific header files using
javah. They are under /usr/demos/java
in the
following directories:
JNI-simple-test
JNI-big-test
JNI-invocation-test
Each of these demos comes with a Makefile
; typing
make
will build and run the example program.
These demo directories are owned by the user demos
, so you
should either login as user demos
or copy them to a directory
where you have write permission if you want to be able to make changes,
recompile, etc.
Java and other Java-based names are trademarks of Sun Microsystems, Inc., and refer to Sun's family of Java-branded technologies. Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.