oracle / oracle/visualvm

VisualVM does not honour jenv

Open
#158 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
3.3k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
I have multiple JDK versions installed on my Mac. I switch between them using jenv. However, VisualVM does not pick up the JDK set on the current shell session or in its application directory.

To Reproduce
Steps to reproduce the behavior:

  1. Install a compatible JDK (8 or 12)
  2. Install an incompatible JDK (13)
  3. Ensure the incompatible JDK is the system JDK in jenv
  4. Try to run VisualVM

Expected behavior
JDK should be identified from environment variables

Desktop (please complete the following information):

  • OS: [e.g. MacOS] MacOS
  • Version [e.g. 1.4]1.4

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

No source files, tests, or entry points are named. Reproduce the issue on macOS with jenv using the listed compatible and incompatible JDK versions, then trace how VisualVM selects its JDK; done means it identifies the JDK from the current shell or application-directory environment instead of the incompatible system JDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, devtools
Issue type
Bug
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.