Restriction: This applies to native code only.
When you develop mixed COBOL and Java programs, you need to be aware of the following:
- The default Java build directives that your COBOL development system uses are
-d %TARGETDIR -classpath "%CLASSPATH";%TARGETDIR %FILENAME (Windows) or
-d $TARGETDIR -classpath "$CLASSPATH":$TARGETDIR $FILENAME (UNIX). The
"%CLASSPATH";%TARGETDIR (Windows) or
"$CLASSPATH":$TARGETDIR (UNIX) section of the command appends the currently-specified target directory to the end of the current setting for the CLASSPATH
environment variable, retaining any spaces specified in the current setting of CLASSPATH.
- If you specify multiple classes in a
.java program, only the resultant
.class file with the same basename as the
.java program is added to the project automatically. You must add any other
.class files manually.
- We recommend that you add the -g Java build directive in debug mode (to generate debugging information), but replace it with
the -O directive in release mode (to create optimized code).
This applies to Windows environments (local development) only.
You can set these directives by clicking
Project menu. Then select the Compile tab for each
.java file and add this directive to the list.