Microsoft SDK for Java

CLASSPATH Environment Variable

Use the CLASSPATH environment variable to specify additional class path information when compiling from the command line. The CLASSPATH environment variable has the following syntax:

SET CLASSPATH = <path>

When the Microsoft virtual machine (Microsoft VM) and the command line get class path information, Java programs may behave differently, depending on where they run. When the Microsoft VM installs, it enters the value C:\%Windir%\Java\Classes\Classes.zip;. into the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Java VM\Classpath. When a Java program runs, the Microsoft VM first looks for the class path value in the registry. If the application executes from the command line, the Microsoft VM also uses the CLASSPATH environment variable, if one has been set.

The jexegen tool uses virtual paths in command line arguments. It is important that the jexegen tool is in your CLASSPATH environment variable, as well as the classes you are working with. If jexegen is not in the class path, the utility must be run from the directory where the associated classes are located (in particular, any classes that contain the main method), or an application error occurs. For example, the following command will not work:

C:\>\SDK-java\bin\jexegen /v c:\_java\BsetEditor\*.class
   c:\_java\BsetEditor\sun\audio\*.class ...

The jexegen utility is running directly from \bin, and it uses absolute paths. This results in an Ignoring File message. You can avoid this by adding jexegen to your class path and by using virtual paths in command line arguments. The classes you include on the command line needs to be only a package name, as follows:

C:\_java\BsetEditor\>jexegen /V com.ms.ui.*.class ...

For more information on this, see Working with Package Names.

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