Javah Header File Builder
The Javah program creates C-headers and stub files, which are required to package local C member functions into Java. The header file created provides information about the Java class that is required to exchange data between the C member function and the Java class. The stub file will be used to create a C file that will define the structure of the Java object and the Java object's own data. The command line to invoke Javah is as follows:
C:\>javah Options ClassName Additionalclasses
The Javah program is somewhat like a Java interpreter, which requires only the class name and does not need to write a. class extension. The Javah program can accept multiple class names to produce file headers and stub files, and the following table lists the Javah program command-line options.
Options feature
-O outputfile This option tells Javah to place all the resulting file headers or stub files in a separate file "OutputFile".
-D directory This option tells Javah to put the resulting file header or stub file into a given directory.
-TD Directory This option tells the Javah program to put temporary files into the directory "Dirrctory" instead of the TMP directory.
-stubs This option tells Javah that the stub file will be generated instead of the header file.
-verbose This option tells Javah to output the status of the resulting file to the standard output device.
-classpath path This option tells Javah to look for class files using the "path" directory, separating multiple directories with semicolons.