Sometimes I change my java_home and the change isn't reflected in the Intellij terminal window... until I log out. Why is that? Is there any way to change it so that the new version takes into affect on launch?
t
tateisu
12/09/2020, 5:34 AM
environment variable is usually folk from parent process. The way to reload it is OS dependent.
tateisu
12/09/2020, 5:35 AM
Perhaps IntelliJ doesn't provide automatic / manual reloading of environment variables
j
Javier
12/09/2020, 3:09 PM
closing and opening the terminal should work too. But you can set the source in the same terminal and it should work, for example,
source ~/.zshrc
c
Colton Idle
12/09/2020, 5:24 PM
I inquired with intellij about it... apparently it could be due to jetbrains toolbox and restarting that instead. I will have to try it next time I have issues.
Colton Idle
12/10/2020, 11:11 PM
Looks like this was related to jetbrains toolbox. I need to quit intellij and toolbox and then my new env vars were there.