In order to Install Apache Tomcat version 8.x.x (Supports Servlet 3.1 specifications) on your Mac OS X (macOS) running Yosemite OS 10.10.x you must have java version 7 or later installed on your Mac.
How to check your java version installed :- Go to Terminal
- Run command: java -version
- If it is less than 1.8, download and install java8:
- http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
bash-3.2$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
bash-3.2$
Installing Tomcat 8.0.22
- Download the latest tomcat binary from : https://tomcat.apache.org/download-80.cgi (apache-tomcat-8.0.22.tar.gz)
- Extract the files to any directory you prefer.
- Open Terminal and move to bin directory location where you have extracted apache binaries.
- Run the command ./startup.sh to start the apache server.
- Now open any browser and open address: http://localhost:8080, you must see the should see "If you're seeing this, you've successfully installed Tomcat. Congratulations!" page.
bash-3.2$ ./startup.sh
Using CATALINA_BASE: /Users/c2c/Setups/apache-tomcat-8.0.22
Using CATALINA_HOME: /Users/c2c/Setups/apache-tomcat-8.0.22
Using CATALINA_TMPDIR: /Users/c2c/Setups/apache-tomcat-8.0.22/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
Using CLASSPATH: /Users/c2c/Setups/apache-tomcat-8.0.22/bin/bootstrap.jar:/Users/c2c/Setups/apache-tomcat-8.0.22/bin/tomcat-juli.jar
Tomcat started.
bash-3.2$
bash-3.2$ ./shutdown.sh
Using CATALINA_BASE: /Users/c2c/Setups/apache-tomcat-8.0.22
Using CATALINA_HOME: /Users/c2c/Setups/apache-tomcat-8.0.22
Using CATALINA_TMPDIR: /Users/c2c/Setups/apache-tomcat-8.0.22/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
Using CLASSPATH: /Users/c2c/Setups/apache-tomcat-8.0.22/bin/bootstrap.jar:/Users/c2c/Setups/apache-tomcat-8.0.22/bin/tomcat-juli.jar
bash-3.2$
- Servlet Spec: 3.1
- JSP Spec: 2.3
- EL Spec: 3.0
- WebSocket Spec: 1.1
- Java Support: 7 or later
More Posts related to Mac-OS-X,
- Transfer files between Android and Mac OS X using usb cable
- Find Java JRE Installation location Mac OS X
- How to enable Do Not Disturb mode for Notification Center in Mac OS X 10.10 Yosemite
- Remove Applications from Startup Mac OS X
- Open New tab using keyboard shortcut in Mac Terminal
- Create a large dummy file using Mac OS X terminal command
- Hide files and folders on Mac OS X
- Install Apache Tomcat ver 8 on Mac OS X Yosemite 10.10
- Location of eclipse.ini file on Mac OS X
- Take Screenshots on Mac OS without Keyboard
- [Solved] Dynamic Web Module 3.0 requires Java 1.6 or newer Mac OSX
- Mac OS X Taking Screen Capture using Terminal
- How to Stop Photos App from auto loading when device connected to the Mac
- Change Mouse Scrolling in Mac OS X
- How to Setup maven on Mac (macOS)
- Mac Studio Display Buzzing sound from the Monitor
- 4 Open Source SQLite Editor for Mac OS X , Windows and Linux
- Save webpage as pdf in Google Chrome for Mac OS X
- vi undo redo command [Examples]
- How to See Hidden Folders and Files on macOS
- [Mac] To open Eclipse you need to install the legacy java se 6 runtime
- Java location in Mac OS X
- Safari appends .html extension to files that are downloaded
- Pdf Text to Speech option in Mac OS X Preview App
- How to run Gradle from Mac Terminal (Command Line)
More Posts:
- How to find current logged-in user in Linux Terminal - Linux
- bash: ls command to see list files in current directory all subdirectories - Bash
- Run only a Single Unit Test using Gradle - Gradle
- [Fix] Steam Friends Network Unreachable Error - HowTos
- How to make use of SQLite Module in Python? - Python
- How to turn off Dark Mode in Excel App for Mac - Windows
- How to show console in Eclipse IDE - Eclipse
- Fix Power BI 404 not found error when connecting SharePoint Online List as Data Source - SharePoint