Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ - why does the terminal has different environment variables values

I have recently replaced Java 7 to Java 8.
All regular apps in IntelliJ runs smoothly.
All but the tomcat apps - which run from the cmd command line but not from IntelliJ.

It fails to load due to an error in the JRE_HOME definition.
I have oviously defined JRE_HOME in the env variables and in the jdk settings.
I have executed

echo %jre_home%

both in the IntelliJ terminal and in the cmd and received different values
(IntelliJ terminal showed unupdated value.).
Where are the variables in the terminal declared?
How do I change them?

like image 400
Bick Avatar asked Oct 23 '14 08:10

Bick


1 Answers

I don't know about old IntelliJ versions, but in 2019.2.3 one can configure environment variables in project settings. Be aware, you need to restart existing terminal or create new terminal tab to see the effect.

enter image description here

like image 162
Alex Matiushkin Avatar answered Sep 28 '22 19:09

Alex Matiushkin