[Java] Tomcat 7 source code compilation and eclipse Import

Source: Internet
Author: User

Http://shengxichen.iteye.com/blog/994780

1. Check out source code, SVN address: http://svn.apache.org/repos/asf/tomcat/trunk

2. Rename build. properties. Default to build. properties.

3. Create a directory (for example, G:/myfile/other/tomcat_compile_lib_base_path) for compiling jar files required for Tomcat dependencies.

Modify base. Path in build. properties to the directory you just created:

Base. Path = G:/myfile/other/tomcat_compile_lib_base_path

///////////// In my practice, do not change the base. path here. Otherwise, an error may occur. Without modification, it will create its own directory

4. Run the command: ant ide-Eclipse

If the dependent jar package is not found, such as the geronimo-spec-jaxrpc-1.1-rc4.jar cannot,

Open the http://www.findjar.com/index.x to find the geronimo-spec-jaxrpc-1.1-rc4.jar and replace the old loc address in build. properties as follows:

Set

Jaxrpc-lib.loc =$ {base-maven.loc}/Geronimo-spec-jaxrpc/$ {jaxrpc-lib.version}/Geronimo-spec-jaxrpc-$ {jaxrpc-lib.version}. Jar

Replace

Jaxrpc-lib.loc = http://mirrors.ibiblio.org/pub/mirrors/maven/geronimo-spec/jars/geronimo-spec-jaxrpc-1.1-rc4.jar

//// // I have not encountered any changes here. You can directly use ant ide-Eclipse.

 

 

Then you can import eclipse. At the same time, you can run tomcat in the output \ build directory. Click bin \ Startup. BAT to start it;

Go to the fun bar :)

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.