Skip to content

[Enhancement] Support custom JAVA_HOME on Linux in runbroker.sh and runserver.sh #10171

@majialoong

Description

@majialoong

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

runbroker.sh and runserver.sh ignore user set JAVA_HOME on Linux, always overriding it with which javac result. This was already fixed in tools.sh (#7786), but these two scripts were not updated.

Motivation

This issue was already fixed in tools.sh (#7786), but runbroker.sh and runserver.sh were not updated. Users deploying on Linux with a custom JAVA_HOME may silently get the wrong JDK.

Describe the Solution You'd Like

Move the JAVA_HOME check before the case statement in find_java_home(), consistent with tools.sh.

Describe Alternatives You've Considered

No. The proposed fix aligns with the existing approach already adopted in tools.sh.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions