Java Calling JVM COBOL

At the command line

To call from JVM COBOL from Java, add any locations that include the JVM COBOL classes or packages being called to the CLASSPATH environment variable.

Also, in the Java source code, add an import statement to import the COBOL class you want to use or the entire package into your Java source file as follows:

import com.microfocus.cobol.MyClass

or

import com.microfocus.cobol.*