Building the mixed AMODE COBOL/Java interoperability application
This section describes how to build the mixed AMODE COBOL/Java™ interoperability application.
About this task
It is recommended that you build and run COBOL JNI applications in z/OS UNIX.
- Compiling
- To compile the COBOL program, use the cob2 command in a z/OS UNIX shell. Specify the
RENT
,DLL
andPGMNAME(LONGMIXED)
compiler options. TheTHREAD
option is not mandatory, provided that there is only one COBOL program active in the run-unit at any time.
- Linking
- To prepare the COBOL program for execution, link the object file with the following two DLL side
files to create an executable module:
- libjvm31.x, which is provided with your 64-bit IBM Java Software Development Kit:
$JAVA_HOME/lib/s390x/j9vm
. - igzxjni2.x, which is provided in the lib subdirectory of the COBOL install directory in the z/OS UNIX file system, typically /usr/lpp/cobol/lib. This DLL side file is also available as the member IGZXJNI2 in the SCEELIB PDS.
- libjvm31.x, which is provided with your 64-bit IBM Java Software Development Kit: