redhat-developer / redhat-developer/vscode-java

Customize tooling_jre with env var

Open
#2,686 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have a use case where I need tooling_jre to be customizable: https://github.com/redhat-developer/vscode-java/blob/master/src/requirements.ts#L36.

I can't use the embedded ones because I need to use a custom one that has the right certs to work with an internal service. I also can't use java.jdt.ls.java.home because the location of the JRE will depend on which machine it's running on. Also, settings.json doesn't accept env variables.

Is it possible to get tooling_jre from an env var?

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 reading src/requirements.ts around line 36 to understand how tooling_jre is selected and where the current embedded-JRE behavior is defined. Determine the environment variable and fallback behavior, then verify that tooling_jre can be customized per machine without breaking the existing configuration paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.