Error: The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted
See original GitHub issueI have coc.nvim installed and to install this extension, I just opened the vim and ran below command:
:CocInstall coc-java
the output is:
Install finished - ✓ coc-java Installed extension coc-java@1.4.11 at /home/milad/.config/coc/extensions/node_modules/coc-java
But when I open a .java file, I first see:
[coc.nvim] JDT Language Server starting at /home/path/to/my/directory
and after some seconds I face below Error:
[coc.nvim] The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted.
I’m on linux and I can write java files in Visual Studio Code normally if it helps anyway.
some Information:
$ java -version
openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13) OpenJDK 64-Bit Server VM (build 10.0.2+13, mixed mode)
$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:41
Top GitHub Comments
Version 57 of JDT Lang Sever works fine https://download.eclipse.org/jdtls/milestones/0.57.0/
Quick hack for those who are facing this issue Replace all directories/files in
~/.config/coc/extensions/coc-java-data/server
with directories/files from above extracted JDT lang server tar.After trying all the steps above it started successfully only after I issued
:CocCommand java.clean.workspace
command.