Update the JDK PATH Variable

Choose Start, Control Panel, (Performance and Maintenance,) System.

Select the Advanced tab and then Environment Variables. Select "Path" in
the System Variables and click Edit. Add a semicolon (;) to the right
end of the "Path" and then type

C:\Program Files\Java\jdk1.6.0_04\bin
 
The new path takes effect in each new Command Prompt window you open
after setting the PATH variable.

(Courtesy W.W. Long, 6/20/2006, as updated by M. Pickard)