Java Reference
In-Depth Information
To set up the kit correctly, the folder that contains the Java interpreter must be included
in the Path . The interpreter has the filename java.exe . If you installed the kit in the
C:\Program Files\Java\jdk1.6.0 folder on your system, java.exe is in C:\Program
Files\Java\jdk1.6.0\bin .
If you can't remember where you installed the kit, you can look for java.exe : Choose
Start, Search. You might find several copies in different folders. To see which one is cor-
rect, open a command-line window and do the following for each copy you have found:
1. Use the CD command to open a folder that contains java.exe .
2. Run the command java -version in that folder.
When you know the correct folder, return to the Environment Variables dialog box, select
Path in the System Variables list, and then click Edit. The Edit System Variable dialog
box opens with Path in the Variable Name field and a list of folders in the Variable Value
field (Figure A.8).
FIGURE A.8
Changing your sys-
tem's Path vari-
able.
To add a folder to the Path , click the Variable Value field and move your cursor to the
end without changing anything. At the end, add a semicolon followed by the name of the
folder that contains the Java interpreter
For example, if c:\Program Files\Java\jdk1.6.0\bin is the correct folder, the follow-
ing text should be added to the end of the Path variable:
c:\Program Files\Java\jdk1.6.0\bin
After making the change, click OK twice: once to close the Edit System Variable dialog
box and another time to close the Environment Variables dialog box.
Try it: Open a command-line window and type the command java version .
If it displays the correct version of the Java Development Kit, your system is probably
configured correctly, though you won't know for sure until you try to use the kit later in
this appendix
Search WWH ::




Custom Search