The JavaTM Tutorial
Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search

Trail: Java Native Interface
Lesson: Writing a Java Program with Native Methods

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.

Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search