Configuring the Environment for Windows
First of all, you need to find out where the JDK was installed on your hard drive.
Most probably, you will find it at C:\Program Files\Java, and the folder name will
depend on the version of the JDK, you have installed. It might be something like
C:\Program Files\Java\jdk1.6.0_02.
Chapter 2
[ 19 ]
We need to do two things:
Make this folder known to your machine as JAVA_HOME environment variable.
Add its \bin subdirectory to the PATH environment variable.
On Windows XP, select Start | Control Panel | System, and then select the
Advanced tab in the System Properties dialog.
On Windows Vista, select Start | Control Panel | System and Maintenance |
System, and then, in the left pane, Advanced system settings.
In both cases, you will see a dialog similar to the one shown in the following figure:
??? ???
Creating Your Working Environment
[ 20 ]
Press the Environment Variables button, and you will see the Environment
Variables dialog, similar to the one shown in the following figure:
Check if in the lower pane of the latter dialog, System variables, there is a variable
named JAVA_HOME. If there is no such a variable, click on the New button
below to add it.
Pages:
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46