What does a cross sign mean in an eclipse

I have a project open in eclipse, its java web application. In eclipse, I see that there is a red X with my project name. When expanding my project, I see that many files have the same red cross.

What does this sign mean in an eclipse? Does it show some compilation error? if there is an error, how can I see the error? And what does the triangle icon mean?

enter image description here

Please view the screenshot above and see the cross and triangle signs ...

+4
source share
7 answers

A cross on the red earth means an error in this file, and a question mark on a yellow background indicates a warning. You can see them on the Problems tab in eclipse:

Eclipse problems tab

You can configure what is seen as an error, and as a warning in Window -> Preferences , and then look for errors/warnings (Also take a look at the docs: Java compiler errors / warnings

In addition to marking resources, you can see errors and warnings in an open file next to the scroll bar:

enter image description here

+9
source

The crossroads shows an error in that Source, Triangle indicates that your source has some warriors

Just open these files to find Red x under the line and marks in the original editor if warnings appear as a triangle with ! in the sidebar of the source code editor

If your source code is large, you can use the ctrl + . shortcut ctrl + . to see errors in the source file. The following shortcuts will go to top-down warnings and errors in your eclipse

A few shortcuts to see errors in the eclipse:

 Next error: `Ctrl + .` Previous error: `Ctrl + ,` Quick fixes: `Ctrl + 1` 
+3
source

The cross sign indicates that the web.xml file has some error. In addition, it is possible that some files in the "jsp" and "lib" directories also have an error.

Yellow triangles are warnings. To find out the details of all, go to Window -> Show view -> Problems

+2
source

I don’t see anyone mentioning one thing that can be confusing for a beginner: the red X appears in the file with an error , as well as for all his parents. These other marks are great convenience when your tree crashes β€” they lead to a file with an error, but they can also cause confusion when viewing an extended tree.

Each error marked with a red X annotation is also displayed in the Problems view if the view filter is configured correctly. . You configure the filter through the local view menu (access through a small triangle down in the upper right corner of the view title bar).

+2
source

Yes, that means you have a mistake, while a yellow triangle with an exclamation mark means that you have a warning. You can view the error by opening the file. An error line will be marked with an error in the left margin.

+1
source

This means that your projects contain an error if it is displayed in red.

+1
source

It seems your project contains an error if it shows a red-cross

The general way you can see Window > Show View > Problems

An easy way to use the clipping key is Alt+Shift+Q,X

+1
source

Source: https://habr.com/ru/post/1439357/


All Articles