microsoft / microsoft/vscode-java-pack
"java.home" does not work on macOS with one than one JDK installed
@akaroml is already working on this.
Since May 26, 2020.
- Dominant language
- TypeScript
- Stars
- 352
- Forks
- 166
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 32
Description
Issue Type: Bug
Setup 'java.home' does not work in neither workspace's settings.json nor user's settings.json. I have two JDK installed on my laptop. In settings.json, I point 'java.home' to my JDK 11 folder. However, VS Code always use my JDK 8 for compile/build/run/debug. Only after I deleted JDK 8, VS Code begin to use my JDK 11.
I noticed that even I don't setup 'java.home', VS Code can still auto-detect my installed JDK and use it.
I don't have JAVA_HOME setup in my environment variables.
VS Code version: 1.43.1
macOS version: 10.13.6
Extension version: 0.8.1
VS Code version: Code 1.43.1 (fe22a9645b44368865c0ba92e2fb881ff1afce94, 2020-03-18T07:01:41.240Z)
OS version: Darwin x64 17.7.0
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.