Command line arguments

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

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

Application-specific parameters

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.

Creating shortcuts

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:

  1. Right-click any exposed portion of the desktop (that is not covered by an application).
  2. Choose New|Shortcut from the context menu.
  3. In the first page of the Create Shortcut Wizard, type in the command line to start the desired application, as detailed above.
  4. Click Next to go to the last page of the Wizard.
  5. Type in a name for the shortcut.
  6. Click Finish.

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:

  1. Right-click the shortcut in the Windows Explorer or desktop.
  2. Choose Properties from the context menu.
  3. Click the Shortcut tab
  4. Make sure the Start In directory is the install directory, not the directory that contains jrew. For example it should be c:\dsj, not c:\dsj\java\bin.


Next Previous Up