MAN page from RedHat EL 8 fpc-3.2.0-1.el8.x86_64.rpm
Section: Free Pascal Java Native Interface generation tool (1)
Updated: 12 Dec 1999Index
pas2jni - Free Pascal Java Native Interface generation tool
Generate a Java native interface description and library from compiled Free Pascal units.pas2jni generates per unit 2 files: a library that provides access to the functions and procedures in the pascal unit in a manner that Java understands, and a .java file that describes the library, and can be used to access the library from Java.
- Unit search path, semicolon delimited. Wildcards are allowed.
- Set output library name. By default, this is the name of the unit followed by 'jni'.
- Set Java package name. This is by default 'pas'.
- Set output path for Pascal files. This is the current directory, by default.
- Set output path for Java files. By default, this is 'pas'.
- Set full path to the "ppudump" program. The ppudump program is needed to analyse the contents of the unit files.
- Include the list of specified objects in the output. The list is semicolon delimited. To read this list from a file use -I@<file>
- -E <list>
- Exclude the list of specified objects from the output. The list issemicolon delimited. To read this list from a file use -E@<file>
- Show a help message.
The following will create a filepas/getopts.java
and a library filegetoptsjni.pas
unit from the standard getopts unit:
The following will create a filegetopts.java and a library filepasgetopts.pasunit from the standard getopts unit:
pas2jni -J. -O. -Lpasgetopts -units/x86_64-linux/getopts.ppu
- SEE ALSO
This document was created byman2html,using the manual pages.