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