Skip to main content

Problem

I would like the .class file produced by the JVM compiler (cob -j) to be output to a different directory rather than be placed in the same directory as the source file.

Solution

You can use the command:

cob -j -C iloutput\\"/home/project/bin\\"  program.cbl

Note: The directory /home/project /bin must already exist.


#JVM
#compile
#class
#directory