NB: The following would all be on one line
set CLASSPATH=
%CLASSPATH%;
C:\directoryname;
Explanation of the above:
set --> command to establish an environmental variable
CLASSPATH=%CLASSPATH%; --> retains the old class path
C:\directoryname; --> adds a new class path, if there are additional path they are to delimited by a ";"
eg. C:\directoryname; C:\directoryname; C:\directoryname; |
to set the class path where directoryname is the name of the directory where the classes will be saved (this is the path to the directory where the classes will be stored - therefore the path can be any number of levels deep - each level to be indicated by a "\" eg. C:\level1\level2\level3)
This presumes that you have or will create the directories noted in the class path. Creating directories is done through the mkdir command above. |