Setting the PATH environment

You can either set the PATH environment from the command line or using
System Properties. The first way sets the PATH for as long as the
command window stays open; the second way sets it for the long term.

You can see what you current PATH env var is by opening a command line
and typing ..\..>path. You can then either change the PATH or add to
it. To change the PATH on your machine, you would type ..\..\>set
PATH="c:\program files\java\jdk1.6.0_10\bin". To add your path to the
current path, you would type ..\..\>set PATH=%PATH%;"c:\program files
\java\jdk1.6.0_10\bin"

To set the PATH for your entire system, open System Properties by
right clicking My Computer on your desktop and select Properties.
Select the Advanced tab, then click the Environmental Variables button
near the bottom. From here you can either create a New PATH, Edit or
Delete your current PATH for "User variables for Vijay" or "System
Variables" by clicking the appropriate button.

Senario A:

1)	 Right click on my computer
2) 	Select properties
3)	Select Advance System Settings from the Task list on the left.
4)	Click on the Advance Tab 
5)	At the bottom of the Advance sheet, Select Environmental Variables
6)	Under system variables, scroll down to Path and double-click it
7)	WITHOUT CHANGING ANYTHING, VERY CAREFULLY  a semicolon(;)to 	the end of the line
8)	Type or paste c:\program files\java\jdk1.6.0_10\bin  at the end of the line
9) 	Keep clicking on OK to apply and exit
10)	Exit out of command prompt.
11)	Start command prompt again and then your projects should now be ready.


Senario B:

1)	run>cmd 
2)	Type: path c:\program files\java\jdk1.6.0_10\bin;%path% 



Senario C:

Click start button; select Control Panel; select System; select
Advanced tab; click on Enviroment Variables; select CLASSPATH under
System variables panel; click edit;
add c:\program files\java\jdk1.6.0_10\bin; click OK.
If no CLASSPATH variable then clikc New button to add.
On the User variable Panel, select PATH; click edit button; add c:
\program files\java\jdk1.6.0_10\bin; click OK.

Senario D:

You have to set two things. locate the mycomputer on your windows
desktop. Right click and select properties. Now select 'Advanced".
Select 'Environement Variables'. You see two different fragments. One
which says User variables for 'xyz' and other 'system variables'. in
'user variables for xyz' select new and add the following.

variable name: JAVA_HOME
variable value: c:\program files\java\jdk1.6.0_10\;

Locate path variable in 'system variables' and add append ';c:\program
files\java\jdk1.6.0_10\bin;' this to the variable value.

If you can't locate the path variable select new and add the following.

variable name: path
variable value: %PATH%;c:\program files\java\jdk1.6.0_10\bin\;