Tomcat 7 is the first Apache Tomcat release to support the Servlet 3.0, JSP 2.2, and EL 2.2 specifications. Please note that Tomcat 7 requires Java 1.6 or better, but that shouldn’t be a problem, if you are running OS X 10.5 or 10.6.
On OS X 10.7 (Lion) however, Java is initially not installed anymore. You can find the installer on Apple’s support side here or follow this installation guide, provided by Adobe. Whatever you do, when opening Terminal and running java -version, you should see something like this.
java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
Here are the easy to follow steps to get it up and running on your Mac
- Download a binary distribution of the core module: apache-tomcat-7.0.20.tar.gz from here. I picked the tar.gz in Binary Distributions / Core section.
- Opening/unarchiving the archive will create a folder structure something like this in you Downloads folder: (btw, this Unarchiver app is perfect for all kinds of compressed files and superior to the built-in Archive Utility.app)
~/Downloads/apache-tomcat-7.0.20 - Move the unarchived distribution to /usr/local
sudo mkdir /usr/local
sudo mv ~/Downloads/apache-tomcat-7.0.20 /usr/local - To make it easy to replace this release with future releases, we are going to create a symbolic link that we are going to use when referring to Tomcat:
sudo ln -s /usr/local/apache-tomcat-7.0.20 /Library/Tomcat - Change ownership of the /Libaray/Tomcat folder hierarchy:
sudo chown -R <your_username> /Library/Tomcat - Make all scripts executable:
sudo chmod +x /Library/Tomcat/bin/*.sh
Instead of using the start and stop scripts, like so:
Last login: Sun Aug 14 15:20:38 on ttys000
wpbookpro:~ wolf$ /Library/Tomcat/bin/startup.sh
Using CATALINA_BASE: /Library/Tomcat
Using CATALINA_HOME: /Library/Tomcat
Using CATALINA_TMPDIR: /Library/Tomcat/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar
wpbookpro:~ wolf$ /Library/Tomcat/bin/shutdown.sh
Using CATALINA_BASE: /Library/Tomcat
Using CATALINA_HOME: /Library/Tomcat
Using CATALINA_TMPDIR: /Library/Tomcat/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar
wpbookpro:~ wolf$
you may also want to check out Activata’s Tomcat Controller a tiny freeware app, providing a UI to quickly start/stop Tomcat.
56 Responses to “Installing Tomcat 7.0.x on OS X”
Trackbacks/Pingbacks
- installing postgres and tomcat on the mac | Down Home Country Coding With Scott Selikoff and Jeanne Boyarsky - [...] how many problems I had with Postgres, I decided to follow a tutorial for Tomcat. This one was easy ...
- Tomcat 7 on Mac OS X | LDG Tech Blog - [...] Tomcat 7 install on Mac, super-easy. (Thanks to Wolf Paulus) [...]



My name is Wolf Paulus, a photographer, hiker, hacker, technologist based in Ramona, California.



Just wanted to say thanks for this post – it helped me get tomcat setup quickly
Wolf ,,,thank you for this blogpost… it was like baby steps into lion and apache and you made it quite easy…Cheerios
Hey Wolf .. Hats off to you man!! I made it quite easy.. its a step by step instruction. That worked it in my lion ..
Thank you very much!!
-Shyam
Thanks Wolf…much appreciated!
Thanks! I even wrote a shell script for the team to automate your instructions.
Thanks Much for the post! I was struggling, trying to run tomcat.
Usman C.