Skip to content

Define several runtimes for a same version of Java #2115

Open
eclipse-jdtls/eclipse.jdt.ls
#3107
@Nicryc

Description

@Nicryc

Is it possible to define several runtimes for a same version of Java in VSCode? I'd like to use the both the Hotspot and OpenJ9 JVM.

My java.configuration.runtimes setting in VSCode looks like this:

"java.configuration.runtimes": [
    {
        "name": "JavaSE-1.8",
        "path": "C:\\Program Files\\Eclipse Foundation\\jdk-8.0.302.8-hotspot"
    },
    {
        "name": "JavaSE-11",
        "path": "C:\\Program Files\\Eclipse Foundation\\jdk-11.0.12.7-hotspot"
    },
    {
        "name": "JavaSE-16",
        "path": "C:\\Program Files\\Eclipse Foundation\\jdk-16.0.2.7-hotspot"
    }
],

I also have other JVMs installed for each of these Java version on my machine. For example one of them is located here: C:\Program Files\Semeru\jdk-8.0.302.8-openj9.

Environment
  • Operating System: Windows 10
  • Visual Studio Code version: 1.60.0
  • Java extension version: 0.81.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions