question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows 10 Couldn't start client Java Language Server even with java_home set

See original GitHub issue

When 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 -

1

I already have the JAVA_HOME environment variable set -

2

and also java.home set in VSCode user settings -

3

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
  1. 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:open
  • Created 5 years ago
  • Reactions:6
  • Comments:36 (10 by maintainers)

github_iconTop GitHub Comments

25reactions
snjezacommented, Feb 9, 2019

@Leomedina could you remove the georgewfraser.vscode-javac extension and install RedHat vscode-java - https://marketplace.visualstudio.com/items?itemName=redhat.java

1reaction
johng42commented, Jun 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found