0. Check the Problems view, positioning errors, found that treatment of;;
1. Check the Build Path of each dependent jar and library to see if there is a warning sign, if any, of processing;
2. Project - & gt; The clean engineering;
Window - & gt; 3. Preference - & gt; Java - & gt; Complier - & gt; Building - & gt; Build path the problems - & gt; Cirluar dependency set warning
4. To install a Maven plug-in can right-click project - & gt; Maven - & gt; The Update Project
CodePudding user response:
Conclusion:Reason: in the project classpath to package path error
Solution: to BUILDPATH CONFIG ` ` ` `, liberaies in Red Cross bag bag for path error, to the classpath to modify the current path of the corresponding package, and then return to F5 to refresh project in eclipse,
The following two paragraphs for me to solve this problem to find the resources on the Internet, can refer to:
You use myeclipse new web project, the project directory will be generated. A classpath configuration files,
Is your project reference jar inside configuration, the classpath. There is no effect for your web project
Is actually for myeclipse recognition, you say this kind of circumstance is inside the classpath file
Configuration cited a jar, but in fact it is not the jar in your lib so there will be a red tip,
You don't have to take. The classpath file and your jar to find one by one, now you open MyEclipse
Right click on your web project, find the Build Path & gt; Configure the Build Paht...
Find Libraries and then there are several tabs above, here is your project reference
All of the jar, and see if it is in a jar icon on a small yellow exclamation mark?
If there is one right, selected the jar first, click on the right of the Remove & gt; Click OK
Wait a few seconds, and now red XX on web project is not, ha ha,
Explain: yellow exclamation mark jar, said. The classpath configuration file references the jar,
But there was no this actually lib jar,
Everyone in the group of direction is different, because there is no such things as configure SVN, need to copy the project integration, the idea is childish, direct import project in eclipse, but project always appear on a red exclamation mark don't know why, see the class in the package there is no error, sometimes can run normally, but yesterday found many mistakes: a run tip can't find the so-and-so class, but look at the WEB - under the INF lib, there obviously, why can't find? Check for a long time, but couldn't find the reason, then from one post to find the idea of finding errors: look at the eclipse Markers this window, that's a good thing! Appear this kind of circumstance is commonly classpath problems, because in my own development environment, my lib library is own user library, reference yourself somewhere in class, but when other import into your own eclipse eclipse view. The configuration of the classpath file, find the class library, no need, of course, there will be a problem,
This reminder: for their own project build path reference when bag is best not to separate the user library, and should be directly in the language of the WEB - INF/lib class libraries, facilitate release, path problem is not easy to appear,
This is myeclipse validation function right-click on the project - & gt; MyEclipse - & gt; It is ok to Remove All the Validation Markers