Trail: Java Native Interface
|
Lesson: Compiling and Running a Java Program with a Native Method
|
|
Running javah
- UNIX
-
% javah -jni HelloWorld
- DOS shell (Windows 95/NT)
-
C:\> javah -jni HelloWorld
- MacOS
-
Drag the
HelloWorld.class file onto the JavaH icon.
This creates a file called HelloWorld.h in the same
folder as JavaH. Move the file into your working folder.
|