If the first routine of a mixed COBOL and Java application is the main method of a Java class or the main factory method of a COBOL class, run the application by using the java command and by specifying the name of the class that contains the main method.
The java command initializes the Java virtual machine (JVM). To customize the initialization of the JVM, specify options on the java command as in the following examples:
| Purpose | Option |
|---|---|
| To set a system property | -Dname=value |
| To request that the JVM generate verbose messages about garbage collection | -verbose:gc |
| To request that the JVM generate verbose messages about class loading | -verbose:class |
| To request that the JVM generate verbose messages about native methods and other Java Native Interface activity | -verbose:jni |
| To set the initial Java heap size to value bytes | -Xmsvalue |
| To set the maximum Java heap size to value bytes | -Xmxvalue |
See the output from the java -h command or the related references for details about the options that the JVM supports.
related references
Persistent Reusable Java Virtual Machine User's Guide
WebSphere for z/OS: Applications (Java Naming and Directory Interface (JNDI))