Windows 10 Couldn't start client Java Language Server even with java_home set
See original GitHub issueWhen I open a java project in VSCode and click on a .java file, I get the error - “Couldn’t start client Java Language Server”. Screenshot below -
I already have the JAVA_HOME
environment variable set -
and also java.home
set in VSCode user settings -
Environment
- Operating System: Windows 10
- JDK version: 11.0.1
- Visual Studio Code version: 1.30.2
- Java extension version: 0.38.0
Steps To Reproduce
- Open a java file in a java project
Additional Informations
I also get additional errors, like “Classpath is incomplete”. Even though I opened a complete intellij generated project and a netbeans generated project in 2 different windows.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:36 (10 by maintainers)
Top Results From Across the Web
Couldn't start client Clang Language Server in VS Code
Start code from the command line with code --disable-extensions . Does the message still occur? If not, then one of your extensions is...
Read more >Windows 10 Couldn't start client Java Language Server even ...
When I open a java project in VSCode and click on a .java file, I get the error - "Couldn't start client Java...
Read more >Does anyone know how to fix this? I have all the ... - Reddit
I have all the necessary extensions installed, still can't run Java. r/vscode - O Couldn't start client Java Language Server Source: Java.
Read more >Fix JAVA_HOME errors | Invalid directory | Not set or defined
However, you can address this issue. First, check the Ubuntu or Windows PATH variable and look to see if any other JRE or...
Read more >Visual studio code error JAVA_Home is not set and no 'java ...
windows 11:important: if after you follow this video the problem is still not solved, please double check if you install the correct version ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Leomedina could you remove the georgewfraser.vscode-javac extension and install RedHat vscode-java - https://marketplace.visualstudio.com/items?itemName=redhat.java
Side note: I was getting this error as well and triple checked everything above for env variables, etc…
The key for me was to launch VSCode as an admin. At that point, everything started working.
Frustrating because setup/install specifically recommended NOT running install as an admin.
Hope this helps.