Skip to main content

How can I direct the output from a JVM compilation to a different directory?

  • May 31, 2019
  • 0 replies
  • 0 views

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