Neovim: using lang.java result in error when editing Java file

So, i installed extras in NeoVim called lang.java, but when i trying to edit Java file, i expect that the LSP will work, but it just result in this error:
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800:
Spawning language server with cmd: `{ "" }` failed. The language server is either not installed, missing from PATH, or not executable
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800:
Spawning language server with cmd: `{ "" }` failed. The language server is either not installed, missing from PATH, or not executable.
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800:
Spawning language server with cmd: `{ "" }` failed. The language server is either not installed, missing from PATH, or not executable
....termux/files/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800:
Spawning language server with cmd: `{ "" }` failed. The language server is either not installed, missing from PATH, or not executable.
i already check if JDTLS is installed, and it is installed, can someone help me?
8 Replies
RandomGuy
RandomGuyOP2d ago
i try to use other LSP such as ClangD (for C/C++), it is working
fisher
fisher2d ago
the cmd field is empty, you need to specify it yourself
RandomGuy
RandomGuyOP2d ago
how? where the config file of the cmd? i look at rpc.lua line 800, there's no cmd field
fisher
fisher2d ago
see jdtls doc but i think you are using java_language_server instead
RandomGuy
RandomGuyOP2d ago
idk man, even if i trying to install jdtls from Mason, it's still won't work, maybe I'll just not use jdtls
fisher
fisher2d ago
ive said this before and ill say it again dont rely on mason for lsp
Biswa96
Biswa962d ago
did you mean that only for termux? I am using mason in neovim in Linux desktop without any issue. though I have not use that java lsp.
fisher
fisher22h ago
yea only for termux
Want results from more Discord servers?
Add your server