You may specify any of the properties in the
dsj.properties
file on the command line by preceding it
with a slash or hyphen. Specifying a property value during startup
overrides the same property in the dsj.properties
file.
If you specify an application (DSJApplication), the version
(DSJApplicationVersion) in the dsj.properties
file
is ignored. If you specify a user name (DSJUsername) on the
command line, the password (DSJPassword) in the
dsj.properties
file is also ignored. If you donÆt specify
the password on the same command line, you will get the Enter Password
dialog box (see Logging in).
The dsjclient.bat
file contains the actual command line
to start the DSJ client. At a minimum, the command line is:
java\bin\jre -classpath java\lib\rt.jar;. borland.jax.client.Jax
This runs the JRE (Java Runtime Environment) with the specified class
path, which executes the DSJ client class. The
dsjclient.bat
file always starts the DSJ client with the
JIT (Just-In-Time) compiler JavaComp.dll
, making the
command line:
java\bin\jre -Djava.compiler=JavaComp -classpath java\lib\rt.jar;. borland.jax.client.Jax
dsjclient.bat
lets you specify the application name as
an option. It is automatically preceded by
/DSJApplication=
. For example:
dsjclient Welcome
starts the Welcome application; dsjclient.bat
executes
the following command line:
java\bin\jre -Djava.compiler=JavaComp -classpath java\lib\rt.jar;. borland.jax.client.Jax /DSJApplication=Welcome
If the application youÆre running takes its own command line arguments, you can specify them on the command line as you normally would. Note that the DSJ client arguments all start with "DSJ", so it is unlikely that there will be any name conflicts. All the parameters that are recognized by the DSJ client will be removed from the command line when it attempts to run the application.
For your convenience, you can create shortcuts to run specific
applications through the DSJ client. These shortcuts can appear on the
desktop or in the Start menu. When creating a shortcut, you will
probably want to use jrew
, which does not open a command
prompt window, instead of jre
. For example, the command
line (called the Target in the shortcutÆs properties dialog box) to
start the Welcome app with the DSJ client installed in
c:\dsj
would be:
c:\dsj\java\bin\jrew.exe -Djava.compiler=JavaComp -classpath java\lib\rt.jar;. borland.jax.client.Jax /DSJApplication=Welcome
There are a number of places where you can create a shortcut. For example, to create a shortcut on the desktop:
You may also create a shortcut in various places in the Start menu:
See Windows help for instructions on creating these shortcuts.
Once you create the shortcut you must set the Start In directory to the DSJ client install directory. To do this:
jrew
. For example it should be
c:\dsj
, not c:\dsj\java\bin
.