Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
I have set the
JAVA_HOME
environment variable on my machine via~/.bashrc
. This gets sourced on login and when opening shells. I can correctly see this being resolved to my expected JDK when I runecho $JAVA_HOME
in a terminal (either a stand alone terminal on my machine or the one inside AS).However when I look at
File | Settings | Build, Execution, Deployment | Build Tools | Gradle
I seeJAVA_HOME
incorrectly displayed as referring to the Jetbrains Runtime.I'm not sure how AS is detecting
JAVA_HOME
but for whatever reason it isn't picking up the one I have set for my machine. This also produces a warning when I explicitly set the project to use my preferred JDK but AS is using the incorrectJAVA_HOME
.I'm running Ubuntu 24.04 if that helps?