Building Apache ActiveMQ - linux-on-ibm-z/docs GitHub Wiki
Building Apache ActiveMQ
Below versions of Apache ActiveMQ are available in respective distributions at the time of creation of these build instructions:
- Ubuntu 22.04 has
5.16.1 - Ubuntu (24.04, 25.10) have
5.17.6
General Notes:
-
When following the steps below please use a standard permission user unless otherwise specified.
-
A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
Apache ActiveMQ binaries are available and can be downloaded from here. To use these binaries, different Java flavors can be installed on mentioned distributions.
Note: Apache ActiveMQ(v6.2.6) was verified at the time of creation of these instructions
1. Install Dependencies
-
RHEL (8.10, 9.6, 9.7, 10.0, 10.1)
sudo yum install -y wget tar net-tools curl procps -
SLES (15 SP7)
sudo zypper install -y net-tools-deprecated wget tar gzip curl -
SLES (16)
sudo zypper install -y iproute2 wget tar gzip curl -
Ubuntu (22.04, 24.04, 25.10)
sudo apt-get update sudo apt-get -y install curl wget tar net-tools
2. Install Java
-
With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9).
- Download and install IBM Semeru Runtime (Java 17 or 21 or 25) on all above mentioned distribution (except ub25.x) from here.
-
With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)
- Download and install Eclipse Adoptium Temurin Runtime (Java 17 or 21 or 25) from here.
-
With OpenJDK 17
- RHEL (8.10, 9.6, 9.7)
sudo yum install -y java-17-openjdk-devel - SLES (15 SP7, 16)
sudo zypper install -y --auto-agree-with-licenses java-17-openjdk java-17-openjdk-devel - Ubuntu (22.04, 24.04, 25.10)
sudo apt-get install -y openjdk-17-jdk
- RHEL (8.10, 9.6, 9.7)
-
With OpenJDK 21
- RHEL (8.10, 9.6, 9.7, 10.0, 10.1)
sudo yum install -y java-21-openjdk-devel - SLES (15 SP7, 16)
sudo zypper install -y --auto-agree-with-licenses java-21-openjdk java-21-openjdk-devel - Ubuntu (22.04, 24.04, 25.10)
sudo apt-get install -y openjdk-21-jdk
- RHEL (8.10, 9.6, 9.7, 10.0, 10.1)
-
With OpenJDK 25
- RHEL (9.6, 9.7, 10.0, 10.1)
sudo yum install -y java-25-openjdk-devel - Ubuntu (22.04, 24.04, 25.10)
sudo apt-get install -y openjdk-25-jdk
- RHEL (9.6, 9.7, 10.0, 10.1)
Note: Versions (v17.0.18 and v21.0.10 and v25.0.2) of IBM Semeru Runtime and (v17.0.18 and v21.0.10 and v25.0.2) of Adoptium Temurin Runtime were used at the time of creation of these instructions.
3. Set JAVA_HOME
-
Set JAVA_HOME and PATH
export JAVA_HOME=<Path to Java> export PATH=$JAVA_HOME/bin:$PATH
4. Start ActiveMQ
To start the process, extract binary tarball to /<source_root>/ and follow steps given below
export SOURCE_ROOT=/<source_root>/
export PATH=$JAVA_HOME/bin:$PATH
cd $SOURCE_ROOT/<apache-activemq_binary_folder>/bin
./activemq console # Run ActiveMQ as a foreground process or
./activemq start # Run ActiveMQ as a daemon process
5. Test the Installation
Steps to test Apache ActiveMQ installation can be found on their offical website here.