MAMP installs the Apache HTTP server which is fine for your PHP development but if you want to do Java web development then you need to install Tomcat. The good thing is, both servers can run on the same system by following the instruction bellow you can make this happen.
- Dowload the most recent Binary Core tar.gz file of Tomcat (click here to go to the Tomcat web site).
- Extract the file into /Applications/MAMP/. This will create a folder such as /Applications/MAMP/apache-tomcat-6.0.20.
- Rename the folder apache-tomcat-6.0.20 to tomcat. Now you should have a folder called /Applications/MAMP/tomcat.
- Using a plain-text editor (such as Editra) edit the file /Applcations/MAMP/bin/startApache.sh and add the following line to the bottom of the file.
/Applications/MAMP/tomcat/bin/startup.sh
- Save the file and close the text editor.
- Now start MAMP (Applications/MAMP/MAMP).
- Open a browser and navigate to http://localhost:8080.








