Large red exclamation mark when Eclipse import project

Source: Internet
Author: User

Reprinted article: http://blog.csdn.net/xiaotaibai2008/article/details/6365334

Because also met the same problem, so Google has the following, I hope for this little rookie some help, the following is reprint:

--------------------------------------------------------------------------------->

Summary:

Problem Reason: The package path error pointed to in Classpath in the project

Workaround: In the BuildPath CONFIG "", the package with the Red Cross in the liberaies is the wrong path. Modify the current path of the corresponding package into classpath. Then go back to Eclipse and F5 refresh the project.

The following two paragraphs refer to the resources that I find on the Internet when I resolve this issue:

You create a new Web project with MyEclipse, a. Classpath configuration file is generated under the project directory, which is the configuration of the jar referenced in your project. this. Classpath does not have any effect on your Web project, it is actually for myeclipse identification. The reason you're saying this is because the. classpath file is configured to reference a jar, but in fact your Lib does not have the jar so there is a red hint. You don't have to take the. classpath file and your jar one by one, you open myeclipse right-click your Web project and find the build Path > Configure build paht ...
> Then there are several tabs above to find Libraries. What you see here is all the jars referenced in your project to see if there is a small yellow exclamation point on a jar icon? If some words are right, first select this jar, click on the right of the Remove > click OK Wait a few seconds, the Web project above the Red xx is not, haha.
Explain: The jar of the yellow exclamation point, which indicates that the. Classpath configuration file references the jar,
But in fact Lib does not have this jar inside.

Each person in the group does not have the same direction, because there is no configuration svn and so on, when the integration needs copy project, then the idea is very naïve, directly in eclipse in the import project, can always appear on the project a red exclamation mark do not know why, Look at the package in the class also did not error, sometimes can run normally, but yesterday found a lot of errors: a run on the tip can not find a class, but see Web-inf under the Lib, there is clearly, why can't find it? Check for a long time, is not find the reason, later from a post found the idea of finding the wrong: see Eclipse markers This window, is really a good thing ah! This is generally a classpath problem, because in my own development environment, my LIB library is my own user library, referencing my own class, but when others import into their eclipse, Eclipse views the configuration of the. classpath file and discovers that there is no need for the class library, of course there is a problem.
This also reminds yourself that the package referenced in the project's build path is best not to be a standalone user library, but should refer directly to the class library in Web-inf/lib for ease of publication, and path problems are not easy to come by.

<----------------------------------------------------------------

Above, you can resolve this issue

Large red exclamation mark (GO) when Eclipse Import project

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.