Setting environment variables

Environment variables set into the Studio settings are available for child process only (build/execution/post-processing) but cannot be referenced into source file path.

Solaris, Linux or HP-UX platforms

To set an environment variable with a csh shell:

  1. Open a shell window

  2. Type the following command:

setenv <variable> <value>

 

To set an environment variable with a sh, ksh, or Bourne shell:

  1. Open a shell window

  2. Type the following commands:

<variable>=<value>

export <variable>

 

Windows platforms

To set an environment variable from Windows 7 and later:

  1. From the Start menu, select Parameters, Control Panel, and double-click System.

  2. Select the Advanced tab and click Environment variables.

  3. Click the New... button to add the new environment variable.

  4. Click OK.

Related Topics

Environment Variables | Line Command Reference