System Java > Environment Variables > Windows XP Web

Setting the PATH Environment Variable
for Windows XP

Note:

This instruction assumes that you have installed Java 2 SDK in the C:\java\jdk directory. If necessary, replace this directory in which you have intalled your Java 2 SDK software.

1

Open the Control Panel folder and open the System applet.

2 Switch to the Advanced tab and click the Environment Variables button.
3

In the lower pane (System variables), click the New button and create the JAVA_HOME variable:

Variable name: JAVA_HOME
Variable value: C:\java\jdk

Click the OK button when done.

4

In the lower pane (System variables), click the New button and create the JAVA_BIN variable:

Variable name: JAVA_BIN
Variable value: %JAVA_HOME%\bin

Click the OK button when done.

5

Be extremely careful with changes to the PATH VARIABLE!!!

If necessary, scroll the list of System variables down to reveal and select Path. Next, click the Edit button.
In the Variable value box, move to the end of the line (press the End key) and append the following reference:

   ;%JAVA_BIN%

Do not forget the semicolon (;) in front of %JAVA_BIN%!!! Never, ever press Space Bar!!!

Click the OK button when done.

6 Close the Environment Variables dialog box (click OK).
7 Close the System Properties applet (click OK).