Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Running OO applications that start with a main method

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:

Table 30. java command options for customizing the JVM
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
To use the “classic” JVM that is provided by Sun Java Developers Kit 1.3.1 -classic

See the output from the java -h command or the related references for details about the options that the JVM supports.

related references
JVM options (Persistent Reusable Java Virtual Machine User's Guide)


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)