A Web project that references multiple Java project configurations under Eclipse--Reprint

Source: Internet
Author: User

Project structure:

A project consists of a Web project and multiple Java projects, and Web project needs to reference other Java project classes and jar packages. When you debug with Eclipse3.5 and Tomcat at development time, there is no reference to the Java project related classes and jar packages found. After some groping, finally adjusted to pass. The following are the specific debugging methods.

1. Configuring projects in the Java Build path for Web project

Locate the projects view of the Java Build path for Web project, and click the Add button on the right to select the Java project you want to add. Examples of selected results are as follows:

2. Configuring libraries in the Java Build path for Web project

Find the libraries view of the Java Build path for Web Project, click on the Add Class folder button on the right, find the relevant Java Project, tick the check box in front of the bin,

Configuration results such as:

3. Configuring the Java EE Module Dependencies for Web project

Right-click the Web Project project name, select Properties, and the Java EE Module Dependencies can be found on the left.

After entering the configuration page, you will see the libraries of the previous step configuration, and the results are as follows:

Because the jar package in the Java Project Lib directory needs to be used for debugging, it needs to be directed. This requires clicking on the add JARs in the lower right corner, then selecting the jar package in the relevant Java Project lib directory and then determining it.

The following operations are released in accordance with normal deployment!

Original address: http://blog.csdn.net/hfhwfw/article/details/6958218

A Web project that references multiple Java project configurations under Eclipse--Reprint

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.