Apache NetBeans version
Apache NetBeans 26
What happened
visualvm ignores the JAVA_HOME environment variable on Linux.
repro:
Language / Project Type / NetBeans Component
Unix startup script
How to reproduce
- Use Linux
- Use jenv and set it up correctly to also set JAVA_HOME
- start bin/visualvm
- get error message
Did this work correctly in an earlier version?
No / Don't know
Operating System
Debian 24.04 x86_64
JDK
OpenJDK Runtime Environment (build 11.0.28+6-post-Ubuntu-1ubuntu124.04.1)
Apache NetBeans packaging
Other
Anything else
Originally reported in oracle/visualvm#623
Are you willing to submit a pull request?
Yes