JVMCLASSPATH

Adds directories to the CLASSPATH, enabling classes located within those directories to be utilized.
Restriction: This directive is supported for JVM COBOL only.
>>---JVMCLASSPATH-"directory"--------><

Parameters:

directory
The name of a directory containing classes referenced in the source code. If you specify a relative directory path, it is relative to the working directory.

Properties:

Default: None
IDE equivalent: Project properties > Micro Focus COBOL > JVM Build Path > Libraries > Add (External) Class Folder.
$set No

Examples:

The following examples enable a.cbl to utilize any classes found in the myclasses directory:

On Windows:

cobol a.cbl list jvmgen jvmclasspath(myclasses);

On UNIX:

cob a.cbl -C list -C jvmgen -C "jvmclasspath(myclasses)"

Comments:

This directive is not allowed in a $SET statement. You must specify JVMCLASSPATH on the command line. It can be used as an alternative to altering the CLASSPATH environment variable.