Download Tomcat from the official website (), select Tar.gz format under the Core sectionĢ. Once you’ve opened the profile, add the following lines to set the JAVA_HOME and CATALINA_HOME variables:Įxport CATALINA_HOME=/Path/To/Tomcat/Home Installing Tomcatġ. (You can substitute your favorite text editor. To set the JAVA_HOME variable, open a new Terminal window and use the following command to open the system profile for editing. JAVA_HOME is an important environment variable, not just for Tomcat, and it’s important to get it right. Whatever you do, when opening Terminal and running java -version, you should see something like this, with a version of at least 1.7.x I.e.
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_66-b17) The JDK installer package come in an dmg and installs easily on the Mac and after opening the Terminal app again, Configure Environment Variables Prerequisite: Javaĭownload and install the latest Java 8u92 form this link. Follow these step by step instructions to get Tomcat up and running on your Mac OS X machine in no time. The Mac OS X installation process is fairly painless and straight forward, but there are a few rough spots along the way. Installing Tomcat 9 on Mac OS X El Capitan is actually quite easy.