redhat-developer / redhat-developer/vscode-java
Fall back to java.jdt.ls.java.home if embedded JRE fails
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
When deploying VSCode to an AP Computer Science lab where the students don't have admin privileges, attempts to enable the latest Extension Pack for Java (which includes the “Language Support for Java(TM) by Red Hat” extension) fail reporting “Couldn’t start client Language Support for Java” whenever they open a Java project.
Environment
- Operating System: Windows 10
- JDK version: Various (tried latest Microsoft OpenJDK 11 & 17 as well as those from Adoptium's Teemurin)
- Visual Studio Code version: 1.64.0
- Java extension version: v 1.1.0 through v1.3.0
Steps To Reproduce
- Install latest VSCode and JDK (with JAVA_HOME set correctly)
- Create a new Java class
Current Result
Reports “Couldn’t start client Language Support for Java” when trying to run or debug the Java code.
Expected Result
Should work like it does for users with admin privileges (or how it did for v1.0.0).
Additional Information
Works fine for users with admin privileges or if we roll the students back to v1.0.0 of this extension. Typing java -version in terminal returns correct OpenJDK version.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure on Windows 10 with a Java project and compare the embedded JRE path with the java.jdt.ls.java.home setting. Verify behavior for users without admin privileges and with JAVA_HOME configured. Done means the Language Support for Java client starts and Java code can be run or debugged without requiring administrator access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100