Header file generator-javah.exe

Source: Internet
Author: User
Header file generator-javah.exe-general Linux technology-Linux programming and kernel information. The following is a detailed description. The javah program creates C header files and stub files, which are required to package local C member functions into java. The created header file provides information about the java class, which is required for C member functions to exchange data with the java class. The stub file is used to create a C file that associates the structure of the defined java object with the data of the java object itself. The command line for calling javah is as follows:

C: \> javah options classname additionalClasses

The javah program is somewhat like a java interpreter. It only needs the class name and does not need to write the. class extension. The javah program accepts multiple class names to generate file headers and stub files. The following table lists the javah program command line options.


Option
-O outputfile this option tells javah to put all the generated file headers or stubs into a separate file "outputfile.
-D directory this option tells javah to put the generated file header or stub file into the given directory.
-Td directory: This option informs the javah program to put the temporary file into the directory "dirrctory" instead of the tmp directory.
-Stubs this option tells javah that it will generate a stub file instead of a header file.
-Verbose: This option instructs javah to output the status of the generated file to the standard output device.
-Classpath path: This option tells javah to use the "path" directory to find class files. Separate 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.