Importing the COBOL Support

The support needed for the Java wrapper class to communicate with the OO COBOL class is in the com.microfocus.cobol package. The wrapper must include the following statement:

import com.microfocus.cobol.* ;

You must also ensure mfcobol.jar is on the Java classpath, or your Java programs will not compile or run. See the section Setting Up the Environment for Java and COBOL in the chapter Using Java and COBOL Together.