Description
This document serves as a guide for how to set environment variables within various platforms.
Table of Contents |
---|
|
Windows Vista
How to Set an Environment Variable
To set an environment variable:
- On the Start menu, right-click Computer, and then click Properties.
- In the Tasks pane of the System window, click Advanced system settings.
- On the Advanced tab of the System Properties window, click the Environment Variables... button.
- In the System variables group, click the New... button.
- In the New System Variable window, set the Variable name and the Variable value, and then click OK.
How to Update the Path Evironment Variable
To update the Path environment variable:
- On the Start menu, right-click Computer, and then click Properties.
- In the Tasks pane of the System window, click Advanced system settings.
- On the Advanced tab of the System Properties window, click the Environment Variables... button.
- In the System variables list, click the Path variable, and then click the Edit... button.
- In the Edit System Variable window, scroll to the end of the Variable value box.
- Make sure that the current value ends in a semi-colon (;), add one if it does not.
- After the trailing semi-colon, type the path you wish to add to the variable followed by another semi-colon (e.g., C:\Sun\SDK\bin;).
Windows Server 2008
Same procedure as #Windows Vista.
Windows 7
Same procedure as #Windows Vista.
Windows Server 2008 R2
Same procedure as #Windows Vista.