Use Eclipse to build a Web server on your Mac

Source: Internet
Author: User
Tags apache tomcat

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.