redhat-developer / redhat-developer/vscode-java

How can I set the Java runtime version to JDK 8 for a specific project?

Open
#1,555 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

[provide a description of the issue]

Environment
  • Operating System: macOS Catalina 10.15.6
  • JDK version: 14.0.2 but I want to run my program with 1.8.0_221
  • Visual Studio Code version: 1.47.3
  • Java extension version: 0.65.0
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations

I was wondering if there was a way to make a single project run java programs using JDK 8. I have already put this specific JDK in java.configuration.runtimes but I am not seeing the status bar icon to change the Java Language Level. I have gotten it to work by setting default to true for the JDK I want to use in java.configuraiton.runtimes but I was wondering if there was a way to do this that didn't involve changing my settings for all projects.

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 reviewing the per-project behavior of java.configuration.runtimes and the Java Language Level status bar control described in the issue. Confirm whether a project-specific JDK 8 selection is supported in Visual Studio Code 1.47.3 with Java extension 0.65.0; done means documenting the supported setting or identifying the missing capability.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.