It is recommended that you run OO applications in a z/OS z/OS UNIX environment. To run OO applications from batch JCL or TSO/E, you should therefore use the BPXBATCH utility.
In limited circumstances, however, you can run an OO application by using standard batch JCL (EXEC PGM=COBPROG) or the TSO/E CALL command. To do so, follow these requirements when preparing the application:
INCLUDE '/usr/lpp/java/IBM/J1.3/bin/classic/libjvm.x' INCLUDE '/usr/lpp/cobol/lib/igzcjava.x'
PATH=/bin:/usr/lpp/java/IBM/J1.3/bin LIBPATH=/lib:/usr/lib:/usr/lpp/java/IBM/J1.3/bin: /usr/lpp/java/IBM/J1.3/bin/classic:/u/userid/applications CLASSPATH=/u/userid/applications
To customize the initialization of the JVM that will be used by the application, you can set the COBJVMINITOPTIONS environment variable in the same file. For example, to access enterprise beans that run in a WebSphere server, you must set the Java system property java.naming.factory.initial. For details, see the related task about running OO applications under UNIX.
When you run an OO application that starts with a COBOL program by using standard batch JCL or the TSO/E CALL command, follow these guidelines:
Example: compiling, linking, and running an OO application using JCL
related tasks
Preparing OO applications under UNIX
Running OO applications under UNIX
Structuring OO applications
UNIX System Services User's Guide (The BPXBATCH utility)
Language Environment Programming Guide (Running an application under batch)
related references
XL C/C++ Programming Guide (_CEE_ENVFILE)
Language Environment Programming Reference (ENVAR)