microsoft / vscode-java-pack

VS Code extensions for Java developers.
Other
291 stars 133 forks source link

JDK on PATH environment variable is not detected #1391

Open soloturn opened 1 month ago

soloturn commented 1 month ago

Environment:

Version: 1.94.2 (user setup)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT arm64 10.0.26100

Step to Reproduce:

Expected Behavior:

Actual Behavior:

jdneo commented 1 month ago

Have you tried set the JDK to the setting java.configuration.runtimes? See: https://github.com/redhat-developer/vscode-java?tab=readme-ov-file#project-jdks

soloturn commented 1 month ago

@jdneo yes, i can get it work by setting such a variable. but it would be really nice if the vscode java pack is more intelligent here (or less) and relies on PATH only.