Header File Builder-javah.exe

Source: Internet
Author: User
Tags command line stub

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.