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:

  1. On the Start menu, right-click Computer, and then click Properties.
  2. In the Tasks pane of the System window, click Advanced system settings.
  3. On the Advanced tab of the System Properties window, click the Environment Variables... button.
  4. In the System variables group, click the New... button.
  5. 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:

  1. On the Start menu, right-click Computer, and then click Properties.
  2. In the Tasks pane of the System window, click Advanced system settings.
  3. On the Advanced tab of the System Properties window, click the Environment Variables... button.
  4. In the System variables list, click the Path variable, and then click the Edit... button.
  5. In the Edit System Variable window, scroll to the end of the Variable value box.
  6. Make sure that the current value ends in a semi-colon (;), add one if it does not.
  7. 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.

  • No labels