-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language Support for Java client: couldn't create connection to server. #3391
Comments
Would you be able to set |
Hi, Environment This error doesn't let me compile anything. |
I am having the same issue I have un-installed and reinstalled the plugin and tried several versions, all with the same error: Language Support for Java (Syntax Server) client: couldn't create connection to server. at Object.spawn (node:child_process:817:9) |
Changing the default JDK for VSCode to v17 solved the issue. I had tried that earlier, but it wasn't working. - I moved the JDK out of my user directory and into C:\ and tried again. That worked. |
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further. |
I am also facing same problem plz give solutions why it is happening @language Support for Java client: couldn't create connection to server. |
Would you be able to perform any of the steps listed in #3391 (comment) ? Having some logs would definitely be needed to narrow down how/why this is happening. |
I ran into the same issue. In my case it seems to pick up the wrong jdk, it uses here is the log output
|
This seems to be a slightly different issue, but still interesting.
However, the errors |
I deleted corretto, not sure where it came from and I need to check if something else is broken now, but that solved the issue. Now it lists several JRE/JDKs and then picks one, it seems that before it failed on corretto (probably the first one it checked) and that crashed the extensions.
|
For what it's worth, I tried running with https://github.com/corretto/corretto-8/releases/tag/8.322.06.1 but maybe it's a platform-specific issue. It seems to be a fairly old version of that JDK so maybe there were issues. |
macOS : Sonoma 14.1.1
VSCode : Version: 1.84.2 (Universal)
JDK : jdk-21
Language Support for Java(TM) by Red Hat : v1.24.0
copilot directed me to check java.home settings in both VSCode, ~/. zshrc , pom file, but paths are all set correctly.
Current Result
When starting VSCode, this popup message appears, Language Support for Java client: couldn't create connection to server.
This is found in output upon running : [Error - 14:02:00] Language Support for Java client: couldn't create connection to server.
Error: spawn Unknown system error -8
In JSON i increased from 1G to 2G "java.jdt.ls.vmargs": "-Xmx2G"
Note I also configured "java.jdt.ls.java.home": "/Users/MyName/Desktop/jdk-21"
Could you please help here? Many thanks for looking at this.
The text was updated successfully, but these errors were encountered: