To call 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 just the COBOL class you want to use, or add an import statement to import the entire package into your Java source file:
For a single class:
import com.microfocus.cobol.MyClass
For the entire package:
import com.microfocus.cobol.*