11

How (where?) can I set Environment Variables using IntelliJ idea?

For instance, I am looking forward to set the $APP_HOME (my tests rely on).

Where can this be done please?

jww
  • 90,984
  • 81
  • 374
  • 818
James Raitsev
  • 87,465
  • 141
  • 322
  • 462

2 Answers2

14

Most run configurations have an option to set environment variables:

enter image description here

CrazyCoder
  • 371,688
  • 155
  • 943
  • 850
0

The build settings window has a configuration tab with an option to change the environment variables.

http://www.jetbrains.com/idea/webhelp/run-debug-configuration-application.html

Otherwise you can use system system calls or the java language itself to change them during runtime.

How do I set environment variables from Java?

Community
  • 1
  • 1
aelgoa
  • 1,113
  • 1
  • 8
  • 23