Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #264

Open
zl03jsj opened this issue Oct 6, 2023 · 5 comments

Comments

@zl03jsj
Copy link

zl03jsj commented Oct 6, 2023

image my coc-settings:
  "java.configuration.runtimes": [
    {
      "name": "JavaSE-20",
      "path": "/usr/local/opt/jdk-20.0.2.jdk/Contents/Home",
      "default": true
    }
  ]

and my jdk directory here:
image

The version of coc-java is v1.15.2.

@ketiko
Copy link

ketiko commented Oct 23, 2023

I get the same.

@cybaj
Copy link

cybaj commented Nov 10, 2023

me too...

@ru-wang
Copy link

ru-wang commented Feb 6, 2024

+1

@JensenQi
Copy link

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.

@sainnhe
Copy link

sainnhe commented May 27, 2024

For anyone who wants to get java 21/22 support, you can try my branch #286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants