Error: Could not find or load main class org.apache.activemq.artemis.boot.Artemis

Solution Verified - Updated -

Issue

  • We are trying to create RedHAT AMQ broker instance after installation but its failing with below error
 /tmp/activeMq_81ec1801-0040-4465-980a-d58c40254675/IP/amq-broker-7.2.0/bin/artemis create --no-autotune --user admin --password admin --role admin --allow-anonymous y /tmp/activeMq_81ec1801-0040-4465-980a-d58c40254675/IP/amq-broker-7.2.0/instance/broker1/
Error: Could not find or load main class org.apache.activemq.artemis.boot.Artemis
  • We install AMQ through custom script that unzip the amq-broker-7.2.0-bin.zip and then calls above line to create broker instance.Before we unzip AMQ broker ,we install JDK ,so JAVA_HOME is set properly and set in path also .Kindly assist what could be issue.

Environment

  • Red Hat AMQ
    • 7.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content