JAVAIOP
The JAVAIOP
option controls the behavior of COBOL programs that interoperate with Java™ though the JAVA-CALLABLE
or JAVA-SHAREABLE
directives or by calling Java static methods using the CALL
statement.
Default is: NOJAVAIOP
Abbreviations are:
- JIOP = JAVAIOP
- NOJIOP = NOJAVAIOP
- OP = OUTPATH
- JVMI = JAVAINITOPTIONS
- NOJVMI = NOJAVAINITOPTIONS
OUTPATH('zos-unix-directory')
- The default is the current working directory for the userid under which the
compiler is running. If the compiler is not invoked from z/OS UNIX, the current working directory is
the home directory for the userid under which the compiler is running.
'zos-unix-directory' must be specified within quotes and must exist prior to
running the compiler.Note: You must specify 'zos-unix-directory' when using
OUTPATH
option, andJAVAIOP(OUTPATH)
alone is not supported. Otherwise, you will receive a compiler diagnostic message.
NOJAVAINITOPTIONS|JAVAINITOPTIONS(jvm-init-string)
- jvm-init-string specifies the initialization string that is to be used to initialize the Java virtual machine (JVM). This is only relevant in scenarios where the application starts on the COBOL side and then makes a call to Java, which requires the COBOL side of the application to start the JVM.
NOJAVA64|JAVA64
- The default is
NOJAVA64
. Specifying theJAVA64
suboption whenLP(32)
is in effect indicates that the COBOL program will interoperate with 64-bit Java. As a result, Java object references will be treated as 8 bytes instead of 4 bytes.
Note: The
JAVAIOP
compiler option can only be specified for the first program in a
sequence of programs (batch compilation). If you specify JAVAIOP
in a
CBL
or PROCESS
statement for a program other than the first
program in the sequence, you will receive a compiler diagnostic message.
Related tasks
CALL statement (Enterprise COBOL for z/OS® Language Reference)
JAVA-CALLABLE (Enterprise COBOL for z/OS Language Reference)
JAVA-SHAREABLE (Enterprise COBOL for z/OS Language Reference)
CALL statement (Enterprise COBOL for z/OS® Language Reference)
JAVA-CALLABLE (Enterprise COBOL for z/OS Language Reference)
JAVA-SHAREABLE (Enterprise COBOL for z/OS Language Reference)