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.