reference: zhaoshijiehttp://zhaoshijie.iteye.com/blog/971157baidu:http://zhidao.baidu.com/ Link?url=wxr-egi0oyusti3v76a6mbmraxerrxsdfenqhlgcf9nstrncsx0twrv3gjhj6zcthrmnblo_4pr27vltzqlfrk
Related solutions:
(quite simply): You don't need to add a project in the Java Build path, just right-click on the->properties->java EE Modul dependencies in the Eclipse Web project to select the Java project jar/ Module on it, project references will automatically tick the corresponding Java project! Hope to be helpful to everyone:) solve the project reference problem.
Note: MyEclipse Dynamic Web Project-related solutions are consistent with eclipse.
MyEclipse Web Project Reference method:
On the Web project right-click on the "Properties" Java Build Path Source tab, and then on the right clicking the Link Source button "Browse (browse the SRC directory of the local project you want to refer to) Click OK, the following Folder name: Box fill in a name (preferably write the name of the project referenced, so very clear), and finally click Finish directly to complete! (At this point, the project will be a number of the name of the referenced project and the SRC Peer directory) ok.
You also need to import the original Java Project Lib package into the Web project referenced Libraries
Myeclipse10 merging a Java project into a Web project