
108 Java Stand-alone Applications on z/OS Volume II
For a COBOL source file Classname.cbl that contains the class definition for
Classname, you would use the following commands to compile and link the
components of the application:
Table 6-3 Commands for compiling and linking a class definition
After you issue the cob2 and javac commands successfully, you have the
executable components for the program:
The executable DLL module libClassname.so
The class file Classname.class
All files from these commands are generated in the current working directory.
6.4.3 Java program calling COBOL
The following example demonstrates how to call a COBOL progr ...