I have installed coc for neovim, after that I ran the command to install coc-java:
:CocInstall coc-java
Then configured coc-settings.json which is in ~/.config/nvim folder:
"java.configuration.runtimes": [
{
"name": "JavaSE-21",
"path": "/usr/lib/jvm/jdk-21.0.2",
"default": true
}
]
The jdk is truly lying at the path above, however, Coc spits this error when opening a java file:
Invalid runtime for JavaSE-21: Runtime at '/usr/lib/jvm/jdk-21.0.2' is not compatible with the 'JavaSE-21' environment.
I'm following the original tutorial of the author of coc-java on how to set up an environment. I'm using neovim as the text editor, please help me solve it