-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Failed to execute Java command to run lsp server. Please ensure that
kotlinLSP.jrePathToRunLsp
option is set correctly to the JRE installation path.Current value isnull

I see this error on macOS and it's very confusing. There are java installations:
❯ /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
24.0.1 (arm64) "Oracle Corporation" - "OpenJDK 24.0.1" /Users/tmm1/Library/Java/JavaVirtualMachines/openjdk-24.0.1/Contents/Home
21.0.2 (arm64) "Eclipse Adoptium" - "OpenJDK 21.0.2" /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
17.0.14 (arm64) "JetBrains s.r.o." - "JBR-17.0.14+1-1367.22-nomod 17.0.14" /Users/tmm1/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home
If I open settings and search for jrePathToRunLsp
, it's not clear what value I'm supposed to put in there. The full bin/java
path didn't work. The JAVA_HOME didn't work.
Metadata
Metadata
Assignees
Labels
No labels