Previous Topic Next topic Print topic


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 > JVM Build Path > Libraries > Add (External) Class Folder.
$set Initial

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 can be used as an alternative to altering the CLASSPATH environment variable.

Previous Topic Next topic Print topic