Restriction: This topic applies to UNIX environments (remote development) only.
The command to invoke the Java/COBOL application launcher in order to run Java bytecode. It can take one of two formats:
cobjrun [options] class [arguments]
cobjrun -jar [options] jarfile [arguments]
where the parameters are:
- options
- The options you would normally specify to your Java application launcher.
- class
- The name of the class to be invoked. If the Java/COBOL application launcher cannot find a Java class of this name, it tries
to find a COBOL program of the same name. If a COBOL program is found, it is executed.
- arguments
- The arguments to pass to the main function.
- -jar
- Specifies that a program from a JAR file is to be executed.
- jarfile
- The name of the Java archive (.jar) file to be invoked.
Tip: You can also specify an arguments file (
@<name-of-args-file>); for syntax usage within the file, see the Oracle documentation for more details of a Java command-line arguments file.
[5]