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
  • 97,681
  • 90
  • 411
  • 885
James Raitsev
  • 92,517
  • 154
  • 335
  • 470

2 Answers2

14

Most run configurations have an option to set environment variables:

enter image description here

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
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,193
  • 1
  • 8
  • 24