pas2jni(1) | Free Pascal Java Native Interface generation tool | pas2jni(1) |
pas2jni - Free Pascal Java Native Interface generation tool
pas2jni [options] <unit> [<unit2> <unit3> ...]
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.
The following will create a file pas/getopts.java and a library file getoptsjni.pas unit from the standard getopts unit:
pas2jni units/x86_64-linux/getopts.ppu
The following will create a file getopts.java and a library file pasgetopts.pas unit from the standard getopts unit:
pas2jni -J. -O. -Lpasgetopts -units/x86_64-linux/getopts.ppu
12 Dec 1999 | Free Pascal |