A Web project references multiple Java project configurations under Eclipse __java

Source: Internet
Author: User
Project Structure:

The project consists of one Web project and several Java projects, and Web project needs to reference other Java project classes and jar packages. When debugging with Eclipse3.5 and Tomcat at development time, a referenced Java project-related class and Jar package cannot be found. After some groping, finally made a pass. The following are the specific debugging methods.

1. Configure projects in the Java Build path of 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. Configure libraries in the Java build path of Web project

Locate the Libraries view of the Java build path for Web Project, click the Add Class Folder button on the right to find the relevant Java Project and hook up the checkbox in front of the bin, as shown in figure:

The results of the configuration are shown below:

3. Configure Java EE Module dependencies for Web project

Right-click on the Web project project name, select Properties, and the Java EE Module dependencies is located on the left.

When you enter the configuration page, you will see the libraries of the previous configuration and check it out, as shown in the following example:

Because you need to use a jar package in the Java Project lib directory when debugging, you need to guide it. This requires clicking on the add JARs in the lower-right corner of the chart, clicking on the jar package in the relevant Java Project Lib directory, and then determining.

The following operations are released in accordance with the normal deployment.

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.