redhat-developer / redhat-developer/vscode-java
java.configuration.runtimes not working
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
[provide a description of the issue]
Environment
- Operating System: MacOS Big Sur
- JDK version: openjdk8, openjdk11, openjdk17, temurin8, temurin 11, temurin 17
- Visual Studio Code version: 1.70.1
- Java extension version: 0.25.0
Steps To Reproduce
- Open a Java project - Spring Boot and java.version on Maven is 11
- Wait until Java Build Status is finished
- Hover mouse over on "Language Level" of Java Runtime at the right-bottom.
- It is always one of the 8 version, even though the title shows JavaSE-11. My configuration change on settings.json (for user and workplace both) is not working.
- If I remove all 8 JDKs, JavaSE-11 is still shown but the path becomes "/Library/Internet Plug-ins/Java/AppletPlugin.plugin/Contents/Home".
[Please attach a sample project reproducing the error]

Please attach logs
Current Result
java.configuration.runtimes does not work at all and I cannot use any other JDKs except the one VSCode chooses by default.
Expected Result
I had been able to chose different JDKs per project.
Additional Informations
I have not used VSCode for my Java development for a while and found this recently.
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
Reproduce the issue with the reported MacOS, VS Code, Java extension, and JDK versions using a Spring Boot project whose Maven Java version is 11. Start with the settings.json java.configuration.runtimes configuration and the Java Runtime language-level display; done means the project uses the configured JDK and different JDKs can be selected per project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100