You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional Comments
I misunderstood your intent. Arbitrary directories cannot be detected. This automatic configuration can detect JDKs that you have installed without using an installer, but only in the following locations:
Auto-scan from packages SDKMAN, Homebrew, jEnv, jabba, ASDF, Gradle, Scoop, Chocolatey, IntelliJ etc...
Auto-scan from installations Adoptium, BellSoft, Corretto, Microsoft, Oracle, Red Hat, Semeru, Zulu etc...
Auto-detect environment variables JAVA_HOME, JDK_HOME and PATH
nickzhumsJava: Configure Java Runtime allows you to drill down and select JAVA_HOME or the JDK installed using the installer, but as opticyclic says, I don't think you can specify any directory.
The GUI seems to allow you to select the directory detected by node-jdk-utils. Also, I think that even the JDK that you edited the json and added to java.configuration.runtimes cannot be selected in that GUI.
Activity
cypher256 commentedon Nov 10, 2023
For your reference, there are Java auto-configuration extensions as below:
https://marketplace.visualstudio.com/items?itemName=Pleiades.java-extension-pack-jdk
Additional Comments
I misunderstood your intent. Arbitrary directories cannot be detected. This automatic configuration can detect JDKs that you have installed without using an installer, but only in the following locations:
nickzhums commentedon Nov 10, 2023
Hi opticyclic, have you tried using this command: Java: Configure Java Runtime in Command Palette? This will bring up a GUI to configure Java Runtime
cypher256 commentedon Nov 11, 2023
nickzhums
Java: Configure Java Runtimeallows you to drill down and select JAVA_HOME or the JDK installed using the installer, but as opticyclic says, I don't think you can specify any directory.The GUI seems to allow you to select the directory detected by node-jdk-utils. Also, I think that even the JDK that you edited the json and added to
java.configuration.runtimescannot be selected in that GUI.nickzhums commentedon Nov 13, 2023
Makes sense. We'll think about this, thanks. Issue assigned to me and Sheng Chen (@jdneo)