Skip to content

support relative paths when configuring jdk #4318

Open

Description

@DetachHead

my project's jdk is located in a directory relative to the project root, but specifying a relative path does not seem to be supported:

{
    "java.jdt.ls.java.home": "./jdk"
    // also doesn't work:
    // "java.jdt.ls.java.home": "${workspaceFolder}/jdk"
}

it would be nice if i could do this because it would allow me to commit this in my workspace settings.json so that others working on my project don't have to configure the path to their jdk manually, since it's located in the same spot for everybody

Activity

  1. ineentho commented on Jan 30, 2026

    @ineentho

    I have the same issue. We use mise for managing our java version, and mise-vscode supports symlinking the configured jdk to .vscode/mise-tools/java.

    For reference both the python and node extensions already support expanding the workspaceFolder.

      "debug.javascript.defaultRuntimeExecutable": {
        "pwa-node": "${workspaceFolder}/.vscode/mise-tools/node"
      },
      "python.defaultInterpreterPath": "${workspaceFolder}/.vscode/mise-tools/python",
    

    it would be nice if we could do the same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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