Pointing IntelliJ SDK to jenv
已回答
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
请先登录再写评论。
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)