skip to main content

Wrappers : The -J option

The -J option
The -J option allows you to pass options to the JVM instantiated by the wrapper. Each option specified by -J is placed between “java” and the class name in the command generated by the wrapper.
Example for Compiler
becomes:
Example for Utilities
becomes
Example for Runtime:
becomes:
Example for Debugger:
When you run the Debugger you must pay attention in using the -J option because there are two different virtual machines involved:
Options passed through -J are passed to the both java virtual machines, while options passed without -J are passed only to the second java virtual machine.
The following command, for example, shows how to pass the iscobol.debug.code_prefix property to the Debugger and a configuration file to the COBOL program:
That becomes:
The internal class com.iscobol.invoke.Isrun, if the -d option is used, behaves as follows: settings specified before the -d option are passed to the Debugger JVM and to the program JVM, instead settings specified after the -d option are passed only to the program JVM.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left