coc-java
coc-java copied to clipboard
Invalid runtime for JavaSE-20: Runtime at '/usr/local/opt/jdk-20.0.2.jdk/Contents/Home' is not compatible with the 'JavaSE-20' environment.
"java.configuration.runtimes": [
{
"name": "JavaSE-20",
"path": "/usr/local/opt/jdk-20.0.2.jdk/Contents/Home",
"default": true
}
]
and my jdk directory here:
The version of coc-java is v1.15.2.
I get the same.
me too...
+1
According to README.md, coc-java comes with bunlded jdt.ls from 1.14.0, which not support JDK 20/21.
So we can download latest jdt.ls manually and set "java.jdt.ls.director": "/path/to/your/jdt" at coc-settings.json.
For anyone who wants to get java 21/22 support, you can try my branch https://github.com/neoclide/coc-java/pull/286