Java Reference
In-Depth Information
FIGURE A.13
Setting environ-
ment variables in
Windows NT, XP,
2000, or 2003.
A
ClassPath system variable
Create new variable
If you installed the kit in the
C:\Program Files\Java\jdk1.6.0
folder,
tools.jar
is in
the folder
C:\Program Files\Java\jdk1.6.0\lib
.
If you can't remember where you installed the kit, you can look for
tools.jar
by click-
ing Start, Search from the Windows taskbar. If you find several copies, you should be
able to find the correct one using this method
1.
Use
CD
to open the folder that contains the Java interpreter (
java.exe
).
2.
Enter the command
CD ..
.
3.
Enter the command
CD lib
.
The
lib
folder normally contains the right copy of
tools.jar
.
When you know the correct folder, return to the Environment Variables dialog box
shown in Figure A.13.
If your system does not have a
Classpath
, click the New button under the System
Variables list. The New System Variable dialog box opens.
If your system has a
Classpath
, choose it and click the Edit button. The Edit System
Variable dialog box opens.
Both boxes contain the same thing: a Variable Name field and a Variable Value field.