1. Install Eclipse
2. Install the components required by eclipse
3. Install Tomcat (refer to: Detailed steps for installing Apache Tomcat on Mac System)
Execute script: startup.sh, in Mac terminal input: SH startup.sh
Mac Tomcat Boot cannot find/catalina.sh workaround:
Cannot find/catalina.sh
The file is absent or does not has EXECUTE permission
This file is needed to run
Does not grant executable permissions to files in the bin directory:
chmod +x bin/*.sh
If already in the Bin directory, the Mac terminal directly executes chmod +x *.sh
Mac appears neither the Java_home nor the JRE_HOME environment variable is defined
Solution for at least one of these environment variable are needed to run this program:
Because the system does not have the Java environment installed, just open the command line, enter: Java-version, the system will guide you to install the Java environment, you can directly install.
The following prompt indicates that Tomcat started successfully:
Sunmmdeimac:bin qianjing$ SH startup.sh
Using catalina_base:/usr/local/apache-tomcat-7.0.57
Using Catalina_home:/usr/local/apache-tomcat-7.0.57
Using Catalina_tmpdir:/usr/local/apache-tomcat-7.0.57/temp
Using Jre_home:/system/library/java/javavirtualmachines/1.6.0.jdk/contents/home
Using CLASSPATH:/usr/local/apache-tomcat-7.0.57/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.57/bin/ Tomcat-juli.jar
Tomcat started.
Open Safari Browser and enter the URL http://localhost:8080
If you can open the Tomcat home page correctly, the Tomcat configuration starts successfully.
4. Configure Tomcat under Eclipse (ref.: http://jingyan.baidu.com/article/ca2d939dd90183eb6d31ce79.html)
Use Eclipse to build a Web server on your Mac