question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:41

github_iconTop GitHub Comments

158reactions
pr4th4mcommented, Jul 25, 2020

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.

5reactions
rockneverdies55commented, Nov 15, 2021

After trying all the steps above it started successfully only after I issued :CocCommand java.clean.workspace command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Language Support for Java server crashed 5 times in the ...
Press CTRL + SHIFT + P, and type Java: Clean Java Language Server Workspace. It works for me you can also do the...
Read more >
The Language Support for Java server crashed 5 times in the ...
Open the command palette (F1); select Java: Clean the Java Language Server Workspace; select Restart and delete from the confirmation prompt.
Read more >
coc-java The java server crashed 5 times in the last 3 minutes
This happened to me alot, fixed it by doing :CocCommand java.clean.workspace After u do that restart coc and it should work fine, usually...
Read more >
The DAML language server crashed 5 times in last 3 minutes ...
DAML Extension error message: The DAML language server crashed 5 times in last 3 minutes. The server will not be restarted ; August...
Read more >
Unable to use intellisense - language server crashed 5 time in ...
cpptools client: couldn't create connection to server. The language server crashed 5 times in the last 3 minutes. It will not be restarted....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found