Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[java-11.0.2] jdtls keep crashing on fresh install works when manually setting `lsp-java-jdt-download-url`

Open
#435 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
emacs-lisp, java
Domain
devtools

Research direction

Start by reproducing the fresh lsp-java install on Emacs 28.2 and inspect the jdtls stderr or Messages buffer with lsp-print-io enabled. Compare the jdtls version downloaded by lsp-mode with the manually configured lsp-java-jdt-download-url. Done means a fresh install starts a non-crashing jdtls server, or the failure is narrowed to a documented version or download issue.

Written by the indexing model from the issue text.

Description

Describe the bug
A clear and concise description of what the bug is.

fresh install lsp java jdtls fails to start

LSP :: Connected to [jdtls:99905/starting /Users/vedwin/doc/1.5.76/src]. [2 times]
LSP :: jdtls has exited (exited abnormally with code 13)
Server jdtls:99905/starting exited (check corresponding stderr buffer for details). Do you want to restart it? (y or n) y
using config for config_mac

manually setting to lsp-java-jdt-download-url https://download.eclipse.org/jdtls/milestones/1.23.0/ seems to work. I am on emacs 28.2

lsp-mode:

lsp-mode 20230507.1843, Emacs 28.2, darwin

Note
Before logging the bug please make sure that the issue is reproducible with latest melpa packages and it is reproducible with the clean config(the config from the getting started page.

To Reproduce
install lsp-java on a fresh with a fresh lsp install

Expected behavior
jdtls server version which does not crash should be downloaded

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Please include the debug stack trace (if there is an error) and the content of Messages buffer with lsp-print-io set to t in case the bug is related to client->server communication.

I don't have this unfortunately, opened this mainly so people know to try upgading the jdtls if the one downloaded by lsp-mode is crashing

Dominant language
Emacs Lisp
Stars
696
Forks
97
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from emacs-lsp/lsp-java

All issues in emacs-lsp/lsp-java

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.