Setting the PATH and CLASSPATH in Windows XP

Setting the Path Variable

Setting the Classpath

Now you have to create a new variable, called your CLASSPATH.

Test your installation by opening up a command window and verifying that both the commands "java" and "javac" are recognized.

Setting Path and Classpath in Windows 98

In Windows 98, you can modify your autoexec.bat file

Start Notepad and open c:\autoexec.bat.  Type in or edit the following lines:

set PATH=%PATH%;C:\Program Files\Java\jdk1.5.0_02\bin;

set CLASSPATH=.

Save and exit notepad.