For Windows 7:
- Right click on
My Computer
- Select
Properties
- Select
Advanced System Settings
- Select
Advanced
tab
- Select
Environment Variables
- Select
Path
under System Variables
- Click on
Edit
button
In Variable value editor paste this at the start of the line
C:\Program Files\Java\jdk1.7.0_72\bin;
Click Ok then Ok again
- Restart command prompt otherwise it won't see the change to the path variable
- Type
java -version
in command prompt.
Notes on Step 8:
1. The version of java in this may be different from the one used here -- this is only an example.
2. There will probably be other values in the path variable. It is really important that you don't delete what's already there. That's why the instructions say to paste the given value at the
start of the line -- this means that you don't remove the existing value, you just put java before it. This also fixes any problems you'd be getting if an other version of java is also on the path.
Notes on Step 6:
1. This sets the path for the computer, not for the individual user. It may be that you're working on a computer which other developers also use, in which case you'd rather set the user variables, rather than the system variables