Start from Command Line/CLI for Environment Variables to Be Picked Up

Start IntelliJ from command line

Start IntelliJ from command line for your env variables to be picked up.

First create command line launcher in IntelliJ: Tools->Create Command-line Launcher

Then from terminal start IntelliJ using

idea

or if you have modified the default idea behavior.

command idea

Now IntelliJ that was started from command line should have your environment variables.

Note: close all instances IF modified env variable

Note if you have modified the ENV variable in your terminal, you need to close all instances of IntelliJ. And re-open from relevant terminal window (where env variable is set). For env variable to be picked up.


Backlinks