Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-349

Better JAVA_HOME detection

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: rocketmq-commons
    • Labels:
      None

      Description

      Currently RocketMQ startup scripts look for `java` executable in `/usr/java`, which is not a standard path for modern Linux distributions. In most cases, it's annoy to set JAVA_HOME env manually.

      Based on my investigation, some frequently used path are:

      • /usr/lib/jvm/java (el7)
      • /usr/lib/jvm/default (arch)
      • /usr/lib/jvm/..., java is soft-linked to /etc/alternatives/java (ubuntu)

      I can create a patch to improve this behaviour.

        Attachments

          Activity

            People

            • Assignee:
              lollipop Jixiang Jin
              Reporter:
              Sunng Ning Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: