Using the Java Compiler Options

There are two compiler options that make it easy for you to provide COBOL services to a Java program:

Compiler Option Description
--javaclass     Generates a Java class that calls your COBOL program
--javamain Generates a Java class with a main method