Skip to content

Honor the JAVA_HOME environment variable #623

Open
@stoty

Description

@stoty

Is your feature request related to a problem? Please describe.
Visualvm does not honor the JAVA_HOME variable. Having to start it with "bin/visualvm --jdkhome $JAVA_HOME" is an unneccessary annoyance.

Describe the solution you'd like
If JAVA_HOME is set, then visualVM should use it as the default value for the jdkhome.
If it is not set, visualvm should behave as it does today.

Describe alternatives you've considered
None

Additional context
JAVA_HOME is used by most Java startup scritps to locate the JRE to be used.
Developers expect JAVA_HOME to be honored, and is usually set correctly on developer machines by jenv, sdkman, etc.

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