Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor the JAVA_HOME environment variable #623

Open
stoty opened this issue Feb 18, 2025 · 0 comments
Open

Honor the JAVA_HOME environment variable #623

stoty opened this issue Feb 18, 2025 · 0 comments

Comments

@stoty
Copy link

stoty commented Feb 18, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant