/cp:p — Prepend CLASSPATH Option (JVIEW/WJVIEW)

Syntax

/cp:p path

The /cp:p option prepends the path entered to the beginning of the CLASSPATH information and inserts a semicolon between the directories. When multiple /cp:p options are entered, the paths are concatenated.

Note   The CLASSPATH environment variable or the /cp option supply the location of the .class file and .zip file directories. The virtual machine for Java uses a platform-dependent default location, the CLASSPATH Environment Variable, and the Java Package Manager (JPM) database to find system classes. For more information on using the Java Package Manager, see the Java Package Manager documentation.

Example

The following commands prepend the directory of myproj to the existing CLASSPATH information:

JVIEW /cp:p myproj

-or-

WJVIEW /cp:p myproj

The following commands concatenate the directories, myproj1 and myproj2, and prepend the resulting path to the existing CLASSPATH information:

JVIEW /cp:p myproj1 /cp:p myproj2

-or-

WJVIEW /cp:p myproj1 /cp:p myproj2