IntelliJ IDEA 2017.1 Help

Path Variables

File | Settings | Appearance & Behavior | Path Variables for Windows and Linux
IntelliJ IDEA | Preferences | Appearance & Behavior | Path Variables for macOS

On this page:

Path Variables page

ResetUse this link to revert path variables and the list of ignored variables to their initial saved states.
NameThis field shows the name of a path variable (readonly).
ValueThis field shows the value of a path variable (readonly).
/help/img/idea/2017.1/new.png or Alt+Insert Use this icon or shortcut to create a new path variable. (The Add Variable dialog will open.)
/help/img/idea/2017.1/edit1.png or Enter Use this icon or shortcut to edit the selected path variable. (The Edit Variable dialog will open.)
/help/img/idea/2017.1/delete.png or Alt+DeleteUse this icon or shortcut to delete the selected path variable.
Ignored Variables List the names of the variables that should be ignored. Use semicolons (;) to separate individual list items.

Add / Edit Variable dialog

NameSpecify the path variable name.
Value Specify the path variable value. Use /help/img/idea/2017.1/browseButton.png (Shift+Enter) to select the necessary file or folder in the Select Path dialog.


Consider storing a library on your disk. This library is attached to your project, and the path to this library is included in the *.iml file of your project. However, this path should not be absolute, since the other teammates may store same library in the different locations.

That's why it makes sense to create a dedicated path variable PATH_TO_LIB:

  1. On the Settings dialog, click Path Variables.
  2. Click /help/img/idea/2017.1/new.png.
  3. In the Add Variable dialog box, type the variable name PATH_TO_LIB, and its value that points to the library location on your disk.
  4. Share the *.iml file on the version control.
  5. The other developers should update their projects, and change the value of PATH_TO_LIB variable to point to the locations of their libraries.

See Also

Last modified: 18 July 2017