Most of you might me knowing but for the rest....
if we have a user variable lets say :
JAVA_HOME --> C:\Program Files\Java\jdk1.6.0_19
we can add it in the "Path" System variable simple by following these steps:
1. Right click on My Computer
2. Select Properties
3. Select Advanced Tab
4. Click on Environment Variables button
Path --> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Credant\Shield v5.4.2\;C:\Program Files\QuickTime\QTSystem\;T:\acme\current\bin;%JAVA_HOME%\bin;
In the above red colored is the "uservariable" and \bin can be added if we are having the .bat/.sh file in the bin folder.
Remember not setting the variable wont give the complile time error but will throw error at runtime