redhat-developer / redhat-developer/vscode-java

Define several runtimes for a same version of Java

Open
#2,115 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question runtime
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Java extension reads and selects entries from the java.configuration.runtimes setting. Check whether multiple entries with the same JavaSE version are currently supported and how a user would choose between HotSpot and OpenJ9. Done means both runtimes can be defined for one version and selected predictably.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.