Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK on PATH environment variable is not detected #1391

Open
soloturn opened this issue Oct 12, 2024 · 2 comments
Open

JDK on PATH environment variable is not detected #1391

soloturn opened this issue Oct 12, 2024 · 2 comments

Comments

@soloturn
Copy link

soloturn commented Oct 12, 2024

Environment:

  • VS Code Version:
  • Extension Version: v0.29.0
  • JDK Type & Version: OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
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:

  • install openjdk and put it on the path
  • do NOT set JAVA_HOME
  • start vscode, install extension

Expected Behavior:

  • extension installs and works

Actual Behavior:

  • complains about missing java
@jdneo
Copy link
Member

jdneo commented Oct 14, 2024

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
Copy link
Author

soloturn commented Oct 14, 2024

@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.

@jdneo jdneo changed the title java is on the path, extension does not recognize it JDK on PATH environment variable is not detected Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants