Pointing IntelliJ SDK to jenv
Answered
Hello, I am trying to setup IntelliJ such that it picks up the JAVA SDK based on JAVA_HOME set by jenv. The idea is that if the jenv global is setup, intellij defaults to that, if the project folder has a local jenv then that is picked up; regardless a query to JAVA_HOME should always point to the right JAVA_HOME. I was wondering if it is possible to do something like that in IntelliJ
Please sign in to leave a comment.
The IDE doesn't yet support switching JDK via jenv but we have an open feature request at https://youtrack.jetbrains.com/issue/IDEA-147078.
See https://www.jetbrains.com/help/idea/sdk.html on how to manually configure JDK in IntelliJ.
Thank you Egor for the reply. I have commented on the feature request link with these details. Hope this would be taken up quickly by the team as it appears to be a relevant feature present in other IDEs like VS code (https://github.com/redhat-developer/vscode-java/pull/1104)