You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows 10 Couldn't start client Java Language Server even with java_home set #785
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 -
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.
Reacted by Ali, Joel Anderson, babychaos, 0x36D76289, HaMeD ChaMaNara, Abraham Schilling and Dav
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. #785
Hope this helps.
I had the same issue here like everyone else, and opening VS Code as an Admin, the message about not starting java Language is no more. Not sure how else to run VS Code Java not as Admin and prevent the message from showing or how to fix it?
Error: Internal error.
at c:\Users\djkong7.vscode\extensions\redhat.java-0.68.0\dist\extension.js:1:76464
at c:\Users\djkong7.vscode\extensions\redhat.java-0.68.0\dist\extension.js:1:76758
at Immediate. (c:\Users\djkong7.vscode\extensions\redhat.java-0.68.0\dist\extension.js:1:77117)
at processImmediate (internal/timers.js:439:21)
These two errors are logged thousands of times.
I can't try "remove the georgewfraser.vscode-javac extension and install RedHat vscode-java -" because I've never had it installed.
Also tried to launch VSCode as admin. No luck.
Upon further searching, I found #1588 . Maybe someone here has some ideas.
@snjeza So %APPDATA%\Code\User\workspaceStorage<your_workspace>\redhat.java is around 7.5GB. I backed up that folder and restarted VSCode to get a new folder that should hopefully have the same error logs in it, just much smaller. redhat.java.zip
I was able to zip the original folder and get it down to 400MB. 15MB with 7zip if you'll accept that.
@snjeza Ahh, gotcha. I guess it gets confusing when to use that or not since you can now browse WSL files natively in windows explorer. Thank you for your help!
I had exactly the same problem that @djkong7 had. Project that I'm working on is located on WSL2, but I needed to run it on Windows (Firewall was blocking traffic from wsl2. wsl2 and workstation firewalls are just a big mess :-/)
There's a simple workaround for the problem where language server fails compiling source code from UNC paths ( \wsl$\foo = UNC path)
Open \\wsl$\ in File Explorer. Right click on the WSL2 installation and select Map network drive.... Finally open project from the mapped drive in VS Code.
@chehab2003
I just uninsstalled java enviroment aqnd extentions then install again and restart, will work properly, becaue now VSC has better API to dedct your bug.
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".
I am facing the same problem what can I do?
On Wed, 8 Feb 2023 5:10 am Nawab_furkan, ***@***.***> wrote:
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".
I am facing the same problem what can I do?
—
Reply to this email directly, view it on GitHub
<#785 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZI7RH26XCMMSQ3U5UKXLN3WWMME7ANCNFSM4GUBQLCQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
This issue seems to have had a lot of individual causes, and a lot of different solutions. At this point I think it's best to close this issue and let others open new ones for their specific situations.
Activity
quiles909 commentedon Sep 28, 2020
I had the same issue here like everyone else, and opening VS Code as an Admin, the message about not starting java Language is no more. Not sure how else to run VS Code Java not as Admin and prevent the message from showing or how to fix it?
quiles909 commentedon Sep 28, 2020
That worked, thanks!
djkong7 commentedon Oct 2, 2020
I am having the same issue.
Brand new install of Windows 10.
JAVA_HOME: "C:\Program Files\AdoptOpenJDK\jdk-11.0.8.10-hotspot"
[[object Object]]Internal error.
and
Error: Internal error.
at c:\Users\djkong7.vscode\extensions\redhat.java-0.68.0\dist\extension.js:1:76464
at c:\Users\djkong7.vscode\extensions\redhat.java-0.68.0\dist\extension.js:1:76758
at Immediate. (c:\Users\djkong7.vscode\extensions\redhat.java-0.68.0\dist\extension.js:1:77117)
at processImmediate (internal/timers.js:439:21)
These two errors are logged thousands of times.
I can't try "remove the georgewfraser.vscode-javac extension and install RedHat vscode-java -" because I've never had it installed.
Also tried to launch VSCode as admin. No luck.
Upon further searching, I found #1588 . Maybe someone here has some ideas.
snjeza commentedon Oct 2, 2020
@djkong7 Could you attach your settings.json?
djkong7 commentedon Oct 2, 2020
@snjeza Yeah! Here you go.
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"terminal.integrated.shell.windows": "C:\Program Files\PowerShell\7\pwsh.exe",
"java.trace.server": "verbose",
"java.configuration.checkProjectSettingsExclusions": false
}
snjeza commentedon Oct 2, 2020
@djkong7 Could you try to add:
backslashes must be escaped (duplicated)
djkong7 commentedon Oct 2, 2020
@snjeza Looks like I'm still having the same issue. New settings.json:
{ "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", "java.trace.server": "verbose", "java.configuration.checkProjectSettingsExclusions": false, "java.home": "C:\\Program Files\\AdoptOpenJDK\\jdk-11.0.8.10-hotspot" }same errors as before. Here is a screenshot of my Java Runtime Configuration.

snjeza commentedon Oct 2, 2020
Could you try to Clean the workspace directory ?
djkong7 commentedon Oct 2, 2020
Same issue and same error messages after following the steps:
Open the command palette (F1)
select Java: Clean the Java language server workspace
click Restart and delete
snjeza commentedon Oct 2, 2020
@djkong7 could you attach your logs:
%APPDATA%\Code\User\workspaceStorage<your_workspace>\redhat.java - whole this directory
djkong7 commentedon Oct 2, 2020
@snjeza So %APPDATA%\Code\User\workspaceStorage<your_workspace>\redhat.java is around 7.5GB. I backed up that folder and restarted VSCode to get a new folder that should hopefully have the same error logs in it, just much smaller.
redhat.java.zip
I was able to zip the original folder and get it down to 400MB. 15MB with 7zip if you'll accept that.
snjeza commentedon Oct 2, 2020
@djkong7 could you try to move your project to C:<some_directory> and try to open it?
djkong7 commentedon Oct 2, 2020
@snjeza That seemed to work! Is running projects that reside in \\wsl$ something that is officially not supported?
snjeza commentedon Oct 2, 2020
@djkong7 you can try Remote development in WSL
djkong7 commentedon Oct 2, 2020
@snjeza Ahh, gotcha. I guess it gets confusing when to use that or not since you can now browse WSL files natively in windows explorer. Thank you for your help!
bhaskor-sarmah commentedon Oct 24, 2020
Thanks buddy, this solved my issue also.
anhLEvn commentedon Aug 8, 2021
skorhone commentedon Oct 8, 2021
I had exactly the same problem that @djkong7 had. Project that I'm working on is located on WSL2, but I needed to run it on Windows (Firewall was blocking traffic from wsl2. wsl2 and workstation firewalls are just a big mess :-/)
There's a simple workaround for the problem where language server fails compiling source code from UNC paths ( \wsl$\foo = UNC path)
Open
\\wsl$\in File Explorer. Right click on the WSL2 installation and selectMap network drive.... Finally open project from the mapped drive in VS Code.chehab2003 commentedon Nov 30, 2021
Hello @snjeza I am facing the couldn’t start client java Language server do you know how to fix this?
RamiSJ12 commentedon Feb 25, 2022
@chehab2003
I just uninsstalled java enviroment aqnd extentions then install again and restart, will work properly, becaue now VSC has better API to dedct your bug.
Hamzy-Ab commentedon Nov 9, 2022
Worked like magic. Thanks man.
mohdfurkan01 commentedon Feb 8, 2023
Hamzy-Ab commentedon Feb 8, 2023
RokE03 commentedon Mar 9, 2023
I happened to solve my instance of this issue by editing the
settings.json:I found following:
"java.jdt.ls.java.home": ",After adding my openjdk-directory on this parameter, the error didn't show up anymore.
mohdfurkan01 commentedon Mar 9, 2023
ok I will check it....and thanks for the help & support
robstryker commentedon Nov 2, 2026
This issue seems to have had a lot of individual causes, and a lot of different solutions. At this point I think it's best to close this issue and let others open new ones for their specific situations.