On Windows the path of the JDK typically includes the version string. Therefore if you upgrade the JDK the path name changes. In IntelliJ this allyways means to manually update all locations where the JDK path is saved.
Therefore I want to add a SDK with an Java home path that use the JAVA_HOME
variable as this is automatically set when installing an JDK and therefore would not require any updates later.
The main problem is that the Java home path text boy is not directly editable. One can only open a file/directory picker dialog that has an edit field but does not allow to use variables like $JAVA_HOME$
or %JAVA_HOME%
(shows only an error message "Specified path can not be found").
How can I add an Java SDK using the JAVA_HOME
environment variable that automatically updates whenever I upgrade the installed JDK?