Skip to content

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

Closed

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

Activity

  1. added
    kind:bug
    needs:triage
    on Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugneeds:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions