You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a "not compatible" error when trying to include JDK20 in my configuration. Can NON-lts be JDKs be used with this plugin?
Installed JDK 20 (temurin) on MacOS using brew, add an env variable and then added a runtime to my jdtls config
configuration = {
runtimes = {
{ name = "JavaSE-11", path = java11 .. "/Contents/Home", }, -- Fine
{ name = "JavaSE-17", path = java17 .. "/Contents/Home", }, -- Fine
{ name = "JavaSE-20", path = java20 .. "/Contents/Home", }, -- PROBLEM
},
},
I'm able to issue:
cd /Library/Java/JavaVirtualMachines/temurin-20.jdk/Contents/Home/bin
./java -version
openjdk version "20.0.1" 2023-04-18
OpenJDK Runtime Environment Temurin-20.0.1+9 (build 20.0.1+9)
OpenJDK 64-Bit Server VM Temurin-20.0.1+9 (build 20.0.1+9, mixed mode)
Not sure if that completely rules out a permissions issue but MacOS didn't complain.
LspLog contains /reports:
[ERROR][2023-04-25 15:55:18] ...lsp/handlers.lua:535 "Apr 25, 2023, 3:55:18 PM Runtime at '/Library/Java/JavaVirtualMachines/temurin-20.jdk/Contents/Home' is not compatible with the 'JavaSE-20' environment"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm getting a "not compatible" error when trying to include JDK20 in my configuration. Can NON-lts be JDKs be used with this plugin?
Installed JDK 20 (temurin) on MacOS using brew, add an env variable and then added a runtime to my jdtls config
I'm able to issue:
Not sure if that completely rules out a permissions issue but MacOS didn't complain.
LspLog contains /reports:
Beta Was this translation helpful? Give feedback.
All reactions