1pas2jni(1)     Free Pascal Java Native Interface generation tool    pas2jni(1)
2
3
4

NAME

6       pas2jni - Free Pascal Java Native Interface generation tool
7
8

SYNOPSIS

10       pas2jni [options] <unit> [<unit2> <unit3> ...]
11
12       Generate  a Java native interface description and library from compiled
13       Free Pascal units.  pas2jni generates per unit 2 files: a library  that
14       provides access to the functions and procedures in the pascal unit in a
15       manner that Java understands, and  a  .java  file  that  describes  the
16       library, and can be used to access the library from Java.
17
18

OPTIONS

20       -U<path>
21              Unit search path, semicolon delimited. Wildcards are allowed.
22
23       -L<name>
24              Set  output  library  name.  By default, this is the name of the
25              unit followed by 'jni'.
26
27       -P<name>
28              Set Java package name. This is by default 'pas'.
29
30       -O<path>
31              Set output path for Pascal files. This is the current directory,
32              by default.
33
34       -J<path>
35              Set output path for Java files. By default, this is 'pas'.
36
37       -D<prog>
38              Set  full  path to the "ppudump" program. The ppudump program is
39              needed to analyse the contents of the unit files.
40
41       -I<list>
42              Include the list of specified objects in the output.   The  list
43              is  semicolon  delimited.   To  read  this  list from a file use
44              -I@<file>
45
46       -E <list>
47              Exclude the list of specified objects from the output. The  list
48              is  semicolon  delimited.  To  read  this  list  from a file use
49              -E@<file>
50
51       -?     Show a help message.
52

EXAMPLES

54       The following will create a file pas/getopts.java and  a  library  file
55       getoptsjni.pas unit from the standard getopts unit:
56
57       pas2jni units/x86_64-linux/getopts.ppu
58
59       The following will create a file getopts.java and a library file pasge‐
60       topts.pas unit from the standard getopts unit:
61
62       pas2jni -J. -O. -Lpasgetopts -units/x86_64-linux/getopts.ppu
63
64
65

SEE ALSO

67              java(1) fpc(1) javapp(1)
68
69
70
71Free Pascal                       12 Dec 1999                       pas2jni(1)
Impressum