Skip to content

Failed to execute java #86

@tmm1

Description

@tmm1

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 is null

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions