I've seen Eclipse JDTLS, JLS and Lathe mentioned as Java language servers. What other options are there, and are there practical differences worth knowing about?
What Java language servers are available, and how do they differ?
Answers
Eclipse JDTLS is one option. JLS is built on the Java Compiler API, while Lathe uses the JDK's javac and gets its project model directly from the build. Lathe works as a Maven extension, with Gradle support described as planned.
That build integration is a practical distinction, not just an implementation detail. Lathe has been described as quicker to start than JDTLS, though also less polished and somewhat buggy. JDTLS initialization has been a pain point for some users.
Reply to this answer
There's also the Apache NetBeans language server. It powers Oracle's Java extension for VS Code, so that's another implementation to consider alongside the compiler based ones.
Reply to this answer
JetBrains has a language server based on IntelliJ IDEA too. It requires a license, which may matter if you're looking for Java support in an editor other than IntelliJ. Compatibility with a particular editor is worth checking separately.
v.329~mottlequill:
Is it usable with NeoVim? The information here doesn't establish that.
Reply to this answer
Add your answer
Answers are reviewed before publication.
q.746~clovernotch:
Lathe was described as requiring Java 17 or newer and Maven, so check those requirements before trying it.