Microsoft SDK for Java

Wjview Options

This section describes the command-line options that can be used with wjview.

/a

Invokes the use of the Microsoft AppletViewer. Applets viewed with the Microsoft Applet Viewer function the same as when viewed with a browser, including sound, loading, security features, and so on. When the applet viewer switch is used, all other remaining command-line tokens become parameters that are used by the AppletViewer.

/cp <classpath>

Sets the CLASSPATH environment variable. This option specifies the path where wjview can find system and user-defined classes. The Java interpreter uses a platform-dependent default location and the CLASSPATH environment variable to find system classes. For more information, see CLASSPATH Environment Variable. The directories in the class path are separated by semicolons on a Microsoft® Windows® system; on UNIX, by colons.

/cp:a <path>

Appends the path entered to the end of the existing class path and inserts a semicolon (;) between them.

Note   The value for the existing class path can come from the CLASSPATH environment variable or from the /cp option. When multiple /cp:a switches are entered, the paths are concatenated.

For example, the following command concatenates the directories myproj1 and myproj2, and appends the resulting path to the end of the existing class path:

wjview /cp:a myproj1 /cp:a myproj2

/cp:p <path>

Prepends the path entered to the beginning of the existing class path and inserts a semicolon (;) between them.

The value for the existing class path can come from the CLASSPATH environment variable or from the /cp option. When multiple /cp:p switches are entered, the paths are concatenated.

For example, the following command concatenates the directories myproj1 and myproj2, and inserts the resulting path before the existing class path:

wjview /cp:p myproj1 /cp:p myproj2

/d:<property=string value>

Sets a system property.

/n namespace

Specifies a namespace to run an application in. Separate namespaces allow Java packages with identical names to exist without conflict. The Microsoft Java Package Manager stores packages in a global namespace. It is searched for packages if no namespace is specified by its API elements (for example, the contents of classes.zip is stored in the global namespace). Be aware that applications running in the namespace specified with the /n switch cannot access other namespaces.

/p

Causes wjview to pause before exiting if an error occurs.

/prof[:<parameter>, <parameter>, …]

The parameters shown in the following table can be used.

Parameter Description
call[time]s[=<methods>] Shows time execution in the specified methods.
calltrace[=<methods>] Prints entry and exit messages.
callparams[=<methods>] Prints parameters and return values.
permethodalloc Counts per-method allocations.
perclassalloc Counts per-class allocations.
gc Prints per-garbage-collection heap information.
heapdump Dumps a list of live objects at each garbage collection.
file=<filename> Appends profiling output to the specified file.
sample[=<frequency>] Samples method locations with the given frequency.
verbose Prints class loads and thread creations.
table Prints tabular output in simple space-delimited form.

For examples on how to use /prof with its parameters and view the profiler results see the Jview Profiler Sample in the Profiler Samples directory (Samples Overview.

/v

Verifies all invoked methods (normally, only methods from untrusted loaders are verified).

/vst

Prints verbose stack traces; must be used with debug classes.

/?

Displays wjview usage information including a list of available options.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.