Command Line Options

Whenever you compile using JCOBridge the following options are automatically parsed and available from the command line.

usage: yourSoftware [- -JCOBridgeHelp] [- -JDKHome:] [- -JVMPath:] [- -ClassPath:] [- -JNIVerbosity:] [- -JNIOutputFile:] [- -JVMPackages:] [- -JVMOption:] [- -JVMKVOption:]

 
--JCOBridgeHelp Display the usage help
--LicensePath:“PATH” The path where is located the JCOBridge license file
--JDKHome:”PATH” The path where is located the JRE of the installed JDK
--JVMPath:”PATH” The path to the JRE ennvironment or full path to java virtual machine library file (jvm.dll / libjvm.so).
On windows, if not set, the library try to find a suitable version on the system.
--ClassPath:”PATH” Class-path to be sent to the JVM
--JNIVerbosity:”OPTIONS” Parameters for JNI verbosity; see Oracle documentation online
--JNIOutputFile:”PATH” The absolute path where the JNI verbose info will be written. The file will be opened in append mode.
--JVMPackages:”PKG1,PKG2…PKGN” Comma separated list of package name to be used eg: java.lang,java.util,etc…
--JVMOption:OPTION The options to pass to the JVM when a JVM will be created.
This set a single option of the jvm. The text shall be escaped to allows special chars.
Repeat it multiple times to sent multiple options to the jvm.
eg:
--JVMOption:-Xmx128M
--JVMOption:-XX:OnError=\”gcore %p;dbx – %p\”
--JVMKVOption:OPTION The options to pass to the JVM when a JVM will be created (from version 2.2.0.200516)
This set a key-value (-Dkey-value) option of the jvm. The text shall be escaped to allows special chars.
Repeat it multiple times to sent multiple options to the jvm. The equal ('=') splits between key and value
eg:
--JVMKVOption:key=value

Usage Example:

propmt> yourSoftware --JVMPath:"C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll" --JVMOption:-Xmx128M [your software options]