Building Apache Tomcat - linux-on-ibm-z/docs GitHub Wiki
Below versions of Apache Tomcat are available in respective distributions at the time of creation of these build instructions:
- RHEL (8.10, 9.4, 9.6, 9.7) have
9.0.87 - RHEL (10.0, 10.1) have
10.1.36 - SLES 15 SP7 has
10.1.44 - SLES 16 has
9.0.108 - Ubuntu 22.04 has
9.0.58 - Ubuntu 24.04 has
10.1.16 - Ubuntu 25.10 has
10.1.40
- 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 Tomcat binaries are available and can be downloaded from here. To use these binaries, different Java flavors can be installed on mentioned distributions.
Note: Apache Tomcat(v11.0.20) was verified at the time of creation of these instructions
export SOURCE_ROOT=/<source_root>/
-
RHEL (8.10, 9.4, 9.6, 9.7, 10.0, 10.1)
-
With OpenJDK17: (Except for RHEL 10.0 and 10.1)
sudo yum install -y java-17-openjdk
-
With OpenJDK21:
sudo yum install -y java-21-openjdk-devel
-
With OpenJDK25: (Except for RHEL 8.10)
sudo yum install -y java-25-openjdk-devel
-
With IBM Semeru Runtime
- Download and install IBM Semeru Runtime (Java 17, Java 21 or Java 25) from here.
-
With Eclipse Adoptium Temurin Runtime
- Download and install Eclipse Adoptium Temurin Runtime (Java 17, Java 21 or Java 25) from here.
-
-
SLES (15 SP7, 16)
-
With OpenJDK17:
sudo zypper install -y java-17-openjdk-devel
-
With OpenJDK21:
sudo zypper install -y java-21-openjdk-devel
-
With OpenJDK25:
sudo zypper install -y java-25-openjdk-devel
-
With IBM Semeru Runtime
- Download and install IBM Semeru Runtime (Java 17, Java 21 or Java 25) from here.
-
With Eclipse Adoptium Temurin Runtime
- Download and install Eclipse Adoptium Temurin Runtime (Java 17, Java 21 or Java 25) from here.
-
-
Ubuntu (22.04, 24.04, 25.10)
-
With OpenJDK17:
sudo apt-get update sudo apt-get install -y openjdk-17-jdk
-
With OpenJDK21:
sudo apt-get update sudo apt-get install -y openjdk-21-jdk
-
With OpenJDK25:
sudo apt-get update sudo apt-get install -y openjdk-25-jdk
-
With IBM Semeru Runtime
- Download and install IBM Semeru Runtime (Java 17, Java 21 or Java 25) from here.
-
With Eclipse Adoptium Temurin Runtime
- Download and install Eclipse Adoptium Temurin Runtime (Java 17, Java 21 or Java 25) from here.
-
Note: At the time of creation of these build instructions, Apache Tomcat 11.0.20 was verified with OpenJDK 17 (build 17.0.18+8), OpenJDK 21 (build 21.0.10+7) and OpenJDK 25 (build 25.0.2+10), Temurin-17 (build 17.0.18+8), Temurin-21 (build 21.0.10+7), Temurin-25 (build 25.0.2+10) and IBM Semeru Runtime Open Edition 17 (build 17.0.18+8), IBM Semeru Runtime Open Edition 21 (build 21.0.10+7) and IBM Semeru Runtime Open Edition 25 (build 25.0.2+10).
export JAVA_HOME=<Path to Java>
export PATH=$JAVA_HOME/bin:$PATHTo start the server, extract the binary tar to /<source_root>/ and follow steps given below:
cd $SOURCE_ROOT/<apache_tomcat_binary_folder>/
bin/startup.shOpen http://<ip_address>:8080/ in your browser to access Web UI.