Specifying Arguments in the JADE Command Line

The JADE command line (or program target), used when running a JADE application from outside of the development environment, contains arguments that enable you to specify your JADE configuration. Each element of the command line has an identifying prefix, followed by an equals sign (=) and a specified value.

Command line elements can be delimited by a space, a tab, or a comma. Arguments containing these delimiters must be enclosed in single quotes ('') or double quote ("") characters.

You can define arguments in the [JadeCommandLine] section of the JADE initialization file that you would normally specify on the command line and you can define two‑level initialization file section names so that multiple programs on the same host can share a JADE initialization file. For details, see "Two-Level Section Names" and "Sharing JADE Initialization Files", in the JADE Initialization File Reference. See also "Placing Initialization File Parameters on the Command Line", in the following subsection.

As the command line structure of the batch JADE Database utility program (jdbutilb) differs from that of other JADE applications, the specification of a command line name argument that matches an initialization file section unique identifier does not apply.

Unless your JADE initialization file is located in the bin directory, specify the ini argument on the shortcut command line rather than in the [JadeCommandLine] section so that the executable knows immediately the location of the JADE initialization file that contains all information required by the program.

You can use the server argument in a command line to specify the server Universal Resource Identifier (URI) target database and the client-server transport, instead of the server and path arguments in a command line and the ServerNodeSpecifications parameter in the [JadeClient] section of the JADE initialization file. For details, see "Format of the Server URI String", earlier in this chapter.

For details about:

The command line arguments are listed in the following table.

Argument Specifies … Example
app Application name app=Jade
path Full path of your JADE database directory containing your *.dat JADE files path=c:\jade\system
schema Schema name (mandatory except when app=Jade) schema=Faults
ini JADE initialization file path ini=c:\jade\system\jade.ini
[server] Server type server=SingleUser
[thinClient] That jade.exe checks only arguments required to run in thin client mode thinClient=false
[name] That the program checks for a matching initialization file section name name=SecureAppServer
[newcopy] A new copy of jade.exe is to be started newcopy=false
[host] Host server node name or IP address host=cnwchcs38
[port] Port name or number of the host (server) node port=6015
[interface] TCP/IP name or the IP address of the client (local) node interface=cnwme1c
[localport] Port name or number of the client (local) node localport=5017
[appServer] Remote TCP/IP address or name of the application server appServer=JadeServer
[appServerPort] TCP/IP port number of the application server appServerPort=1500
[startAppParameters] and [endAppParameters] Arguments to enable HugeStringArray string elements to be collected from the command line arguments and passed to the initialization method so that you can run non-GUI standard or thin clients from the jade executable or non‑GUI client jadclient program command line startAppParameters c:\jade\unittest.xml DailyTests codecoverage=true c:\jade\logs\unittest.log endAppParameters
[endJade] The end of JADE-specific arguments (applicable only to the non-GUI client jadclient program, and ignored for all other JADE programs) endJade
[arguments] Optional user-defined arguments for the jadclient program MyNonJadeApp.exe

When specifying your JADE command line:

In multiuser mode, you can optionally use:

Specify the optional interface and localport arguments if you want to bind a specific network adapter in a server node that has more than one network adapter installed; for example, to allow an administrator to ensure connections from clients connect on the fastest interface or to allow easier security when used in conjunction with a firewall or router access list. (By default, JADE defaults to the primary network adapter in the node.)

If you do not specify a host or a port argument, the ServerNodeSpecifications parameter value in the [JadeClient] section of the JADE initialization file is used. If neither of these values is specified in the JADE initialization file, they default to LocalHost and 6005, respectively.

The host, port, interface, and localport command line arguments, if specified, override (but do not update) the ServerNodeSpecifications parameter [host‑name or IP‑address], [remote‑port], [local‑interface‑name or IP‑address], or [local‑port] values, respectively, in the [JadeClient] section of the JADE initialization file.

If you are running multiple copies of JADE, you can have multiple jade.exe shortcuts using the same JADE initialization file (jade.ini) by using the optional name argument, instead of having separate files for each copy of JADE that you run. For details about multiple JADE programs on the same host sharing a JADE initialization file, see "Sharing JADE Initialization Files", in the JADE Initialization File Reference.