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: /usr/lib/jvm/java-11-openjdk/bin/java exited with code: 13

See original GitHub issue

After opening a file in a small project I get the following errors:

## versions

vim version: NVIM v0.3.4
node version: v11.7.0
coc.nvim version: 0.0.65
term: xterm-256color
platform: linux

## Error messages

## Output channel: prettier

## Output channel: highlight
[Info  - 00:56:10] Highlight server running in node v11.7.0

## Output channel: java
[Info  - 00:56:12] Connection to server got closed. Server will restart.
[Error  - 00:56:12] /usr/lib/jvm/java-11-openjdk/bin/java exited with code: 13
[Info  - 00:56:14] Connection to server got closed. Server will restart.
[Error  - 00:56:14] /usr/lib/jvm/java-11-openjdk/bin/java exited with code: 13

The odd thing is that if I create a testfile Test.java in its own directory and open it, JDT Language Server starts just fine.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
noborumacommented, May 16, 2019

@oldsouless I had the same issue. :CocCommand java.clean.workspace was not working either. What I had to do was to manually remove $HOME/.config/coc/extensions/coc-java-data and restart nvim. Then I had to wait for the download to complete (it can take several minutes but a message should appear).

Do not close nvim before the message comes in or you will get the 13 error code back. It would be nice if the incomplete download was canceled/clear out when exiting nvim?

0reactions
Tacsiazumacommented, Oct 5, 2020

I also encountered this issue (the error code 13), but with an older JDK which is also related to #106 . The solution was obvious (upgrading my jdk or downgrading the jdt.ls) in this case so this is just a heads up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't start Eclipse - Java was started but returned exit code=13
After first trying to start Eclipse without any parameters to specify the Java VM, I got an error message saying it couldn't find...
Read more >
[Solved] Java Was Started but Returned Exit Code=13 Error in ...
One of the issue linked with Eclipse is "java was started by returned exit code=13" error. This error is mostly faced by java...
Read more >
Newcomers » Java Exit Code 13 - Eclipse Community Forums
However when I try to launch it, I get the Java Exit Code 13 error. I've tried re-installing Java many times but to...
Read more >
How to Fix Java was Started but Returned Exit Code=13 ... - Dell
If you are getting an error saying “Java was Started but Returned Exit Code=13” during Eclipse installation, then there is a fix for...
Read more >
eclipse crash with "JVM terminated. Exit code=1" — oracle-tech
sometimes eclipse-gtk 3.1 crash with following error: ... Exit code=1 ... $JAVA_HOME to the location where I installed Java at /usr/lib/j2sdk1.4-sun.
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