talira

Eclipse JDT Language Server

A Java language server that works with any editor speaking the Language Server Protocol

open sourceEPL-2.0free

The Eclipse JDT Language Server (jdt.ls) is the Eclipse Foundation's implementation of the Language Server Protocol for Java, built on Eclipse JDT, LSP4J, M2Eclipse for Maven and Buildship for Gradle. Any editor that speaks the protocol gets as-you-type compile errors, completion, Javadoc hovers, organize imports, refactorings and quick fixes, code lens, call and type hierarchies, formatting and semantic highlighting for projects from Java 1.8 through 25, including Maven and Gradle projects and standalone files. It needs a Java 25 runtime. Red Hat's Language Support for Java extension for VS Code bundles it, and it's packaged by some Linux distributions as jdtls.

Problems it solves

  • get Java autocomplete and errors in Neovim or another LSP editor
  • set up a Java language server for my editor
  • Java IntelliSense outside IntelliJ

Features

  • as-you-type Java errors
  • code completion and Javadoc hovers
  • refactorings, quick fixes and organize imports
  • Maven and Gradle project support
  • call and type hierarchies

Limitations

  • Needs a Java 25 runtime to run, whatever Java version the project targets1

Alternatives

The same job

These do what Eclipse JDT Language Server does.

  1. Java Language Server A Java language server built on the Java compiler API, for VS Code, Vim, Emacs, Kate and Sublime
  2. Eclipse LemMinX An XML language server for any editor that speaks the Language Server Protocol
  3. Terraform Language Server HashiCorp's official language server for Terraform, giving any LSP editor completion, diagnostics and navigation
  4. Metals Scala language server with rich IDE features
  5. Lua Language Server A language server for Lua with type checking, completion and diagnostics, written in Lua
  6. YAML Language Server YAML validation, completion and hover over the Language Server Protocol

Compare Eclipse JDT Language Server with the top 3