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
When looking for existing Java Runtimes, findJavaRuntime.ts should search in more paths than currently is doing.
At least it should look for the paths specified in java.configuration.runtimes settings variable (as those are already known runtimes).
It also would be great to look if known tools like SDKMan are installed and search their installation paths ($SDKMAN_DIR/candidates/java if SDKMAN_DIR env variable is defined or $HOME/.sdkman/candidates/java if not)
Use Cases
I'd like that the Installed JDKs tab from Configure Java Runtime view shows my installed JDKs.
Examples
Currently I have VSCode with Remote Development extension using a Docker container where I have installed multiple Java versions using SDKMan but only the one pointed by JAVA_HOME (that is set by SDKMan) is listed despite I have manually listed them all under java.configuration.runtimes.
Workaround
As a workaround I had to sym-link $SDKMAN_DIR/candidates/java to /usr/lib/jvm so my installed JDKs are listed.
The text was updated successfully, but these errors were encountered:
To systematically resolve this issue, I'm planning to make findJavaRuntime.ts a shared lib. This lib will possibly cover jdks installed by below tools:
sdkman
asdf
flatpak
let me know if there's other popular package manager/installer you want me to cover.
Suggestion
When looking for existing Java Runtimes, findJavaRuntime.ts should search in more paths than currently is doing.
At least it should look for the paths specified in java.configuration.runtimes settings variable (as those are already known runtimes).
It also would be great to look if known tools like SDKMan are installed and search their installation paths ($SDKMAN_DIR/candidates/java if SDKMAN_DIR env variable is defined or $HOME/.sdkman/candidates/java if not)
Use Cases
I'd like that the Installed JDKs tab from Configure Java Runtime view shows my installed JDKs.
Examples
Currently I have VSCode with Remote Development extension using a Docker container where I have installed multiple Java versions using SDKMan but only the one pointed by JAVA_HOME (that is set by SDKMan) is listed despite I have manually listed them all under java.configuration.runtimes.
Workaround
As a workaround I had to sym-link $SDKMAN_DIR/candidates/java to /usr/lib/jvm so my installed JDKs are listed.
The text was updated successfully, but these errors were encountered: