Sometimes I change my java_home and the change isn...
# intellij
c
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
environment variable is usually folk from parent process. The way to reload it is OS dependent.
Perhaps IntelliJ doesn't provide automatic / manual reloading of environment variables
j
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
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.
Looks like this was related to jetbrains toolbox. I need to quit intellij and toolbox and then my new env vars were there.