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
I confirmed that this is not an issue with the Eclipse JDT Language Server itself
What happened?
when I installed extension in windows, there is error message in left bottom
when click it, error log is
Language server jdtls:
initializing server jdtls, id 8: Server reset the connection
-- stderr --
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:760:9)
at file:///F:/code/eureka-client-1/[eval1]:31:13
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:220:26)
at async ModuleLoader.eval (node:internal/modules/esm/loader:216:20)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:109:5) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
Node.js v22.5.1
Activity
tartarughina commentedon Sep 4, 2025
The issue might be related with the Java version that zed is using to launch jdtls.
Have you tried using version 21 or 24?
wilkice commentedon Sep 4, 2025
@tartarughina tried jdk 24, but still have error
tartarughina commentedon Sep 4, 2025
What do you have set in Zed config? This is mine for example
{ "lsp": { "jdtls": { "initialization_options": { "settings": { "java": { "home": "~/.local/share/mise/installs/java/24" } } } } } }wilkice commentedon Sep 5, 2025
my config is
BTW, I searched the error
Error: spawn EINVALand find some related issue, not sure if the spawn function needshell=Truejava/src/proxy.mjs
Line 31 in 9ca8918
nodejs/node#52681
Komposten commentedon Sep 13, 2025
Can confirm, using
spawn(bin, args, { shell: true })fixes the issue.Fix EINVAL error when spawning the JDT LS process in Windows (#84)