Skip to content

Honor the JAVA_HOME and JDK_HOME environment variables in nbexec script #8724

@stoty

Description

@stoty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions