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