genjava Syntax Options

The syntax options for the genjava utility are as follows.

genjava [-h] application-name [options]
[-h] or [-help]
Displays help on usage of the utility.
application-name
The name of the library file (.dll or .so) that contains the COBOL object files required for the Java application.
[options]
One or more options used to help build the library file. Those options are:
[-p program-id-list]
Lists the COBOL programs that you are making callable to Java; separate each program with a space. These details are used to generate the progs.java file.
[-s program-id-list]
Lists the COBOL programs that contain the COBOL items that you are sharing with Java; separate each program with a space. These details are used to generate the strg.java file.
[-k package]
Specifies a package name to be used for the progs.java file required for callable COBOL programs, and strg.java required for sharing COBOL items. If no package name is specified, com.microfocus.COBOL is used by default.
[-o output-directory]
Specifies the directory in which to create the package specified by -k package. If no output directory is specified, the current working directory is used.

Example

The following command specifies that, using the definitions in the app2 library file, the utility is to create a progs.java file to access the demo3 and demo6 COBOL programs, and also create a strg.java file to access the COBOL items shared in demo3. Both files are placed in the src sub-directory, using the com.mycompany.dept6 package name.

genjava app2 -p demo3 demo6 -s demo3 -o src -k com.mycompany.dept6