Skip to content

Add a check if "which" command exist #658

Closed

Description

Is your feature request related to a problem? Please describe.
Some minimal system configurations present on Arch Linux doesn't install "which" by default and advertises it as a separate package to install manually.

Describe the solution you'd like
Add a check for which command existing and abort the script if it is not found.

Describe alternatives you've considered
Ask package maintainers to require the which program to be installed.

Activity

  1. luebking commented on Apr 6, 2026

    @luebking
  2. luebking commented on Apr 6, 2026

    @luebking

    This issue wasn't closed but the correct™ fix for the problem from virtualvm's side is to simply not use "which" in any scripts, not to handle its absence.

  3. self-assigned this
    on Apr 24, 2026
  4. thurka commented on Apr 24, 2026

    @thurka
    Member

    I will take a look, but platform/lib/nbexec is not part of VisualVM sources. It comes from netbeans platform.

  5. added a commit that references this issue on Jun 24, 2026
  6. thurka commented on Jun 24, 2026

    @thurka
    Member

    Done in master.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions