3

Previously my project was in another machine. Then I added project into my new machine. After that I got error "error could not find or load main class". Then I remove JRE system library and again add. After that remove unused jar files and save the java build path. After that previous error removed and all code work finely. But every packages and classes from the beginning it shows yellow color exclamation mark. Doesn't give any error message. What is reason for that? How I remove it? Not red color. That's yellow color. (This happened to previouslyenter image description here exist classes and packages. Not for newly creates classes)

![enter image description here][2]

Maduri
  • 249
  • 1
  • 5
  • 19
  • 2
    Please open Problems view and see what does it report. If something is unclear please post the screen capture or warning/error text. – AlexR Nov 17 '14 at 11:08
  • Maybe the dependencies you use for a project is either moved or deleted i.e eclipse cannot find the file you referenced. – Darshan Lila Nov 17 '14 at 11:08
  • @AlexR previously my project work finely. This problem occurred when I'm changing the machine. – Maduri Nov 17 '14 at 11:12
  • @DarshanLila How can I solve it? – Maduri Nov 17 '14 at 11:12
  • Adding requires dependencies. If it's a problem. – Darshan Lila Nov 17 '14 at 11:13
  • The information you sent is not enough. Please consult problems view. – AlexR Nov 17 '14 at 11:14
  • @AlexR That gives class dependency validator message. How can I solve it? My previous machine worked it. What does that mean? That shows class path entry messages. – Maduri Nov 17 '14 at 11:24
  • OK, this is some information. What is the exact message? – AlexR Nov 17 '14 at 11:25
  • @AlexR I added picture of some warning message. What that dependency mean? My previous machine not gave any message like that. – Maduri Nov 17 '14 at 11:31
  • Check referenced libraries. Are they accessible? – AlexR Nov 17 '14 at 12:18
  • @AlexR using my sql connector jar file I'm doing several things. Even yet not give an error message. I couldn't find way to solve this. If I work this way, is it possible to make problem in future code? Some one said to me "delete those references first and then add again". How can I do it? – Maduri Nov 17 '14 at 12:44
  • @Maduri, please answer the questions you are asked. If I ask question I have a reason for this. I spend my time to help you. Generally your problem is either in the classpath itself or in project configuration. If I'd be in front of your monitor Id'd solve the problem within 45 seconds. So, if you really need help, please check again that paths to jars are really valid. You said that you moved to other machine. Is there a chance that jars do not exist there? – AlexR Nov 17 '14 at 12:48
  • @AlexR Sorry dear. All jar files exist. I didn't remove anything. Only added some new few jar files. – Maduri Nov 17 '14 at 12:55
  • 1
    Try to redefine dependencies of the project again. (Right click on project, select properties, go to classpath...) See that eclipse does not complain on any dependency. – AlexR Nov 17 '14 at 12:57
  • @AlexR Thanx lot for wasting your time. Solved it. That was dependency problem. I had added two places. Thanx lot. Have a nice day :) – Maduri Nov 17 '14 at 14:14

3 Answers3

7

These exclamation marks are denoting warnings. This sign will appear on the packages which contains classes with warnings (like unused imports, unused variables, using raw types, etc.). You can reach the class containing warnings and have a look what's causing these warnings. Once found, depending on the warning, you can take necessary actions.

Pramod Karandikar
  • 5,289
  • 7
  • 43
  • 68
  • This problem occurred when I'm changing the project one machine to another and added new jar files and classes of another machine. My previous machine not shown anything. – Maduri Nov 17 '14 at 11:15
4

In Eclipse, these are often caused by Java compiler warnings, and can also be caused by various validation warnings (for XML files, JSP files, etc.)

To see the warning messages, go to Window => Show View => Problems.

This is a fairly comprehensive list from the Eclipse documentation. If anyone knows of another list — maybe with more details, or just the most common icons — feel free to add it.

Juno: JDT Icons

Indigo: JDT Icons

There are also some CDT icons at the bottom of this [help page][1].

If you're a Subversion user, the icons you're looking for may actually belong to Subclipse; see [this excellent answer]:What do the arrow icons in Subclipse mean? for more on those.

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.cdt.doc.user/reference/cdt_u_cproj_view.htm

Community
  • 1
  • 1
Sebri Zouhaier
  • 745
  • 7
  • 18
  • I went through problem section. That gives class dependency validator message. How I solve it? – Maduri Nov 17 '14 at 11:22
  • Remove it here: Preferences -> Validation -> Classpath Dependency Validator Also check if your specific project has its own validation settings overwritting the global ones. Project -> Properties -> Validation – Sebri Zouhaier Nov 17 '14 at 11:27
  • remove mean tick off the class path dependency row (manual and build) ? Is that my project problem or is it ok to remove tick off? In that validation dialog box tick is there on the "Allow projects to override these preferences setting". – Maduri Nov 17 '14 at 11:37
  • tick off the class path dependency row – Sebri Zouhaier Nov 17 '14 at 13:37
  • 1
    Ok. So I figured it out. . . in order to get it to work right, I have to "drop and drag" the files that I want in my classpath/dependencies into my WEB-INF/lib file. It works this way. For some reason when I try to do it the right way build path --> configure build path --> external jars it just doesnt take. – Sebri Zouhaier Nov 17 '14 at 13:47
  • I also thought good and correct way to fist add to web-inf/lib file and then add to class path. Thanx dear. – Maduri Nov 17 '14 at 15:13
0

Goto windows>showview>and select problems

enter image description here

This will show the details:

enter image description here

PDHide
  • 18,113
  • 2
  • 31
  • 46