Java support for lsp-mode using the Eclipse JDT Language Server.
Installation
Clone this repository https://github.com/emacs-lsp/lsp-mode to a suitable path, and add
(add-to-list 'load-path "<path to lsp-java>")
(add-to-list 'load-path "<path to lsp-mode>")
(require 'lsp-java)
(require 'lsp-mode)
(add-hook 'java-mode-hook #'lsp-java-enable)to your .emacs.
It needs the eclipse jdt server in ~/.emacs.d/eclipse.jdt.ls/server/
Download either latest or a specific version of Eclipse JDT Language Server distribution to ~/.emacs.d/eclipse.jdt.ls/server/
If you choose to have the server installed in a different directory, set lsp-java-server-install-dir