JDK on PATH environment variable is not detected

Open
#1,391 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, typescript, vscode
Domain
devtools

Research direction

Reproduce on Windows with OpenJDK 21 on PATH and JAVA_HOME unset, using VS Code 1.94.2 and extension v0.29.0. Trace the extension's Java detection entry point; done means the extension installs and works without reporting missing Java when the JDK is available on PATH.

Written by the indexing model from the issue text.

Description

ai-triaged bug feature-request jdk platform-windows

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
Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-java-pack

All issues in microsoft/vscode-java-pack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.