Eclipse runs TOMCAT7 source code

Source: Internet
Author: User

1. Each environment version:

JDK1.6.0_45 (pro-Test jdk1.7.0_07 will have a problem, do not use the 1.7 version)

apache-ant-1.9.4

Apache-tomcat-7.0.61-src

2. Install ant, download: http://ant.apache.org/bindownload.cgi, configure the appropriate environment variable ant_home after decompression, then add the bin directory to the PATH environment variable

3. Dependency package: Go to Eclipse's Plugins folder to find the following packages, copy them,

Ant.jar,

Javax.wsdl_1.6.2.v201012040545.jar, (the specific version may be different, search javax.wsdl on it)

Jaxrpc.jar,

org.eclipse.jdt.core_3.10.0.v20140902-0626 (Search Jdt.core)

4. Modify APACHE-TOMCAT-7.0.61-SRC under Build.properties.default file, copy Rename to build.properties, open edit Base.path, set a path yourself

5. cmd into apache-tomcat-7.0.61-src directory, enter ant, wait for execution to complete

6. Enter Ant Ide-eclipse, then you can open the project with Eclipse and import the third dependent package into the project.

7. Locate Bootstrap.java, right-click Debug as, configure the Environment-dcatalina.home=d:/tomcat/apache-tomcat-7.0.61-src/output/build (depending on your specific environment), Then debug runs on it.

Eclipse runs TOMCAT7 source code

Related Article

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.