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
Windows 10 Couldn't start client Java Language Server even with java_home set #785
Comments
@Manish-Giri Could you try set JAVA_HOME to C:\Program Files\Java\jdk-11.0.1? |
report any errors you see in the console |
I'm having the same issues... here's my log "java.home": "C:\Program Files\Java\jdk-11.0.2" --- LOG BELOW: `TMSyntax.ts:50 Overwriting grammar scope name to file mapping for scope source.java. log.ts:161 INFO no standard startup: panel is active |
@Leomedina could you try
|
@snjeza thanks for catching that. - that was on me. I pasted the wrong text. My java.home is actually:
|
Could you show the output of the following commands:
|
@snjeza Here's the output: ` Directory of C:\Program Files\Java\jdk-11.0.2 02/08/2019 03:47 PM .02/08/2019 03:47 PM .. 02/08/2019 03:47 PM bin 02/08/2019 03:47 PM conf 01/17/2019 09:41 PM 3,244 COPYRIGHT 02/08/2019 03:47 PM include 02/08/2019 03:47 PM jmods 02/08/2019 03:47 PM legal 02/08/2019 03:47 PM lib 02/08/2019 03:47 PM 160 README.html 02/08/2019 03:47 PM 1,285 release 3 File(s) 4,689 bytes 8 Dir(s) 192,377,327,616 bytes free Directory of C:\Program Files\Java\jdk-11.0.2\bin 02/08/2019 03:47 PM .02/08/2019 03:47 PM .. 02/08/2019 03:47 PM 19,256 api-ms-win-core-console-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-datetime-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-debug-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-errorhandling-l1-1-0.dll 02/08/2019 03:47 PM 22,328 api-ms-win-core-file-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-file-l1-2-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-file-l2-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-handle-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-core-heap-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-interlocked-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-core-libraryloader-l1-1-0.dll 02/08/2019 03:47 PM 21,304 api-ms-win-core-localization-l1-2-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-core-memory-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-namedpipe-l1-1-0.dll 02/08/2019 03:47 PM 19,768 api-ms-win-core-processenvironment-l1-1-0.dll 02/08/2019 03:47 PM 20,792 api-ms-win-core-processthreads-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-core-processthreads-l1-1-1.dll 02/08/2019 03:47 PM 18,232 api-ms-win-core-profile-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-core-rtlsupport-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-string-l1-1-0.dll 02/08/2019 03:47 PM 20,792 api-ms-win-core-synch-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-core-synch-l1-2-0.dll 02/08/2019 03:47 PM 19,768 api-ms-win-core-sysinfo-l1-1-0.dll 02/08/2019 03:47 PM 18,744 api-ms-win-core-timezone-l1-1-0.dll 02/08/2019 03:47 PM 17,856 api-ms-win-core-util-l1-1-0.dll 02/08/2019 03:47 PM 19,768 api-ms-win-crt-conio-l1-1-0.dll 02/08/2019 03:47 PM 22,840 api-ms-win-crt-convert-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-crt-environment-l1-1-0.dll 02/08/2019 03:47 PM 20,792 api-ms-win-crt-filesystem-l1-1-0.dll 02/08/2019 03:47 PM 19,768 api-ms-win-crt-heap-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-crt-locale-l1-1-0.dll 02/08/2019 03:47 PM 27,064 api-ms-win-crt-math-l1-1-0.dll 02/08/2019 03:47 PM 26,936 api-ms-win-crt-multibyte-l1-1-0.dll 02/08/2019 03:47 PM 71,480 api-ms-win-crt-private-l1-1-0.dll 02/08/2019 03:47 PM 19,768 api-ms-win-crt-process-l1-1-0.dll 02/08/2019 03:47 PM 22,464 api-ms-win-crt-runtime-l1-1-0.dll 02/08/2019 03:47 PM 24,888 api-ms-win-crt-stdio-l1-1-0.dll 02/08/2019 03:47 PM 24,888 api-ms-win-crt-string-l1-1-0.dll 02/08/2019 03:47 PM 21,304 api-ms-win-crt-time-l1-1-0.dll 02/08/2019 03:47 PM 19,256 api-ms-win-crt-utility-l1-1-0.dll 02/08/2019 03:47 PM 25,960 attach.dll 02/08/2019 03:47 PM 1,546,088 awt.dll 02/08/2019 03:47 PM 33,640 dt_shmem.dll 02/08/2019 03:47 PM 30,568 dt_socket.dll 02/08/2019 03:47 PM 426,856 fontmanager.dll 02/08/2019 03:47 PM 517,480 freetype.dll 02/08/2019 03:47 PM 182,120 instrument.dll 02/08/2019 03:47 PM 46,440 j2gss.dll 02/08/2019 03:47 PM 22,888 j2pcsc.dll 02/08/2019 03:47 PM 67,944 j2pkcs11.dll 02/08/2019 03:47 PM 24,936 jaas.dll 02/08/2019 03:47 PM 41,832 jabswitch.exe 02/08/2019 03:47 PM 102,248 jaccessinspector.exe 02/08/2019 03:47 PM 65,896 jaccesswalker.exe 02/08/2019 03:47 PM 22,376 jaotc.exe 02/08/2019 03:47 PM 20,328 jar.exe 02/08/2019 03:47 PM 20,840 jarsigner.exe 02/08/2019 03:47 PM 154,472 java.dll 02/08/2019 03:47 PM 279,400 java.exe 02/08/2019 03:47 PM 148,840 javaaccessbridge.dll 02/08/2019 03:47 PM 20,840 javac.exe 02/08/2019 03:47 PM 20,840 javadoc.exe 02/08/2019 03:47 PM 174,952 javajpeg.dll 02/08/2019 03:47 PM 20,840 javap.exe 02/08/2019 03:47 PM 279,400 javaw.exe 02/08/2019 03:47 PM 18,280 jawt.dll 02/08/2019 03:47 PM 20,840 jcmd.exe 02/08/2019 03:47 PM 20,840 jconsole.exe 02/08/2019 03:47 PM 20,840 jdb.exe 02/08/2019 03:47 PM 20,840 jdeprscan.exe 02/08/2019 03:47 PM 20,840 jdeps.exe 02/08/2019 03:47 PM 213,352 jdwp.dll 02/08/2019 03:47 PM 20,840 jhsdb.exe 02/08/2019 03:47 PM 31,080 jimage.dll 02/08/2019 03:47 PM 20,840 jimage.exe 02/08/2019 03:47 PM 20,840 jinfo.exe 02/08/2019 03:47 PM 20,840 jjs.exe 02/08/2019 03:47 PM 246,632 jli.dll 02/08/2019 03:47 PM 20,840 jlink.exe 02/08/2019 03:47 PM 20,840 jmap.exe 02/08/2019 03:47 PM 20,840 jmod.exe 02/08/2019 03:47 PM 20,328 jps.exe 02/08/2019 03:47 PM 20,840 jrunscript.exe 02/08/2019 03:47 PM 20,840 jshell.exe 02/08/2019 03:47 PM 58,216 jsound.dll 02/08/2019 03:47 PM 20,840 jstack.exe 02/08/2019 03:47 PM 20,840 jstat.exe 02/08/2019 03:47 PM 20,840 jstatd.exe 02/08/2019 03:47 PM 20,840 keytool.exe 02/08/2019 03:47 PM 20,840 kinit.exe 02/08/2019 03:47 PM 20,840 klist.exe 02/08/2019 03:47 PM 20,840 ktab.exe 02/08/2019 03:47 PM 248,168 lcms.dll 02/08/2019 03:47 PM 20,328 le.dll 02/08/2019 03:47 PM 25,960 management.dll 02/08/2019 03:47 PM 21,352 management_agent.dll 02/08/2019 03:47 PM 32,616 management_ext.dll 02/08/2019 03:47 PM 508,264 mlib_image.dll 02/08/2019 03:47 PM 687,240 msvcp140.dll 02/08/2019 03:47 PM 91,496 net.dll 02/08/2019 03:47 PM 63,848 nio.dll 02/08/2019 03:47 PM 20,840 pack200.exe 02/08/2019 03:47 PM 21,864 prefs.dll 02/08/2019 03:47 PM 17,256 rmi.dll 02/08/2019 03:47 PM 20,840 rmic.exe 02/08/2019 03:47 PM 20,840 rmid.exe 02/08/2019 03:47 PM 20,840 rmiregistry.exe 02/08/2019 03:47 PM 34,152 saproc.dll 02/08/2019 03:47 PM 20,840 serialver.exe 02/08/2019 03:47 PM server 02/08/2019 03:47 PM 215,912 splashscreen.dll 02/08/2019 03:47 PM 148,840 sunec.dll 02/08/2019 03:47 PM 39,784 sunmscapi.dll 02/08/2019 03:47 PM 1,001,272 ucrtbase.dll 02/08/2019 03:47 PM 87,400 unpack.dll 02/08/2019 03:47 PM 138,600 unpack200.exe 02/08/2019 03:47 PM 89,752 vcruntime140.dll 02/08/2019 03:47 PM 56,168 verify.dll 02/08/2019 03:47 PM 28,520 w2k_lsa_auth.dll 02/08/2019 03:47 PM 166,248 windowsaccessbridge-64.dll 02/08/2019 03:47 PM 81,256 zip.dll 120 File(s) 10,116,848 bytes 3 Dir(s) 192,383,651,840 bytes free C:\Users\medin>` |
@Leomedina could you remove the georgewfraser.vscode-javac extension and install RedHat vscode-java - https://marketplace.visualstudio.com/items?itemName=redhat.java |
@snjeza that fixed it! Thank you. |
like @snjeza answer, deleting george's extension worked for me, thanks man |
Uncaught (in promise) Error: Fetching local packages failed. |
@miggymiggoi The errors you listed here are seems from atom, but not VSCode. |
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. |
thank you. |
thanks, @snjeza. Removing George's extension worked for me as well. |
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? |
That worked, thanks! |
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. 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. |
@djkong7 Could you attach your settings.json? |
@snjeza Yeah! Here you go. { |
@djkong7 Could you try to add:
backslashes must be escaped (duplicated) |
@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. |
Could you try to Clean the workspace directory ? |
Same issue and same error messages after following the steps: Open the command palette (F1) |
@djkong7 could you attach your logs: |
@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. I was able to zip the original folder and get it down to 400MB. 15MB with 7zip if you'll accept that. |
@djkong7 could you try to move your project to C:<some_directory> and try to open it? |
@snjeza That seemed to work! Is running projects that reside in \\wsl$ something that is officially not supported? |
@djkong7 you can try Remote development in WSL |
@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! |
Thanks buddy, this solved my issue also. |
|
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 |
Hello @snjeza I am facing the couldn’t start client java Language server do you know how to fix this? |
@chehab2003 |
Worked like magic. Thanks man. |
|
Does it happen all the time? I had the same issue just a while ago. Simply
restarting VS Code seemed to work.
…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:
***@***.***>
|
I happened to solve my instance of this issue by editing the I found following: After adding my openjdk-directory on this parameter, the error didn't show up anymore. |
ok I will check it....and thanks for the help & support |
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
Steps To Reproduce
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.
The text was updated successfully, but these errors were encountered: