Using package-managed classes with
existing tools:A tool called clspack creates all the .zip files that are usually included in the %WINDIR%\Java\Classes, and are now stored in the package manager. It is
provided in the SDK\bin directory. You can use it by setting the path to \bin (set
path=c:\sdk-java.30p1\bin;%path%) or copying it into the %windir% directory (assuming that the files were unzipped into their default location).
In addition, the value of the CLASSPATH
registry setting is prepended with a reference to this generated classes.zip file (if one
is not currently there). The compiler provided with the SDK (jvc.exe) checks this location
by default for classesthere is no need to set the CLASSPATH environment variable.
For other compilers that do not check
this location by default, set the CLASSPATH environment variable with:
set
CLASSPATH=%WINDIR%\Java\Classes\Classes.zip
before running the compiler. It's a good
idea to place this command in a batch file for easy use.