-
I have been using nvim-jdtls for months, and now I need to use an old Java version. To change the runtime environment to Java 11, I just put the path to these versions on my config file. See this snippet.
Additionally, I tried without success to change the Java version by using the My complete config is available here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The following command is exactly what I was looking for and it solves the problem. :lua require('jdtls').set_runtime('JavaSE-11') Note: To enable the vim.cmd "command! -buffer -nargs=? -complete=custom,v:lua.require'jdtls'._complete_set_runtime JdtSetRuntime lua require('jdtls').set_runtime(<f-args>)" |
Beta Was this translation helpful? Give feedback.
The following command is exactly what I was looking for and it solves the problem.
Note: To enable the
:JdtUpdateConfig
command I had to add the command below in myftplugin/java.lua
file.