Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java eclipse red exclamation mark

Tags:

java

eclipse

I have just got a new computer and installed Eclipse Indigo and all of the plugins that I use. But when I open my workspace from my old computer some projects have an exclamation mark. What does a red exclamation mark mean on a project folder?

like image 302
uthen Avatar asked Nov 04 '11 11:11

uthen


People also ask

How do I get rid of the red exclamation mark in eclipse?

use this simple steps right click on the project->properties ->java Build path-> click on the jre system library and remove it after that step click on Add library and add a new jre system library that will resolve it!

What does red exclamation mark mean in eclipse?

It means there is a problem with the build path in your project. If it is an android project then it mostly means the target value specified in project. properties file cannot be found. This can also be caused because of other kinds of built problems.

What does the exclamation point mean in Java?

The logical complement operator, also known as the NOT operator in Java, is represented by an exclamation mark '! '. This operator changes true values to false and false to true.


9 Answers

The red exclamation mark usually means there is a problem with the Build Path. Do you see any alerts in the "Problem" View?

like image 73
Raoul George Avatar answered Sep 30 '22 22:09

Raoul George


It means that there is an error on that project.. You can look at all the errors in the Problems tab. press ALT SHIFT Q followed by X to show this tab.

like image 32
steelshark Avatar answered Sep 30 '22 23:09

steelshark


It means that there are two things happened.........

  1. What ever jar file or project setup jar file for your application are not located at that point where it was earlier in your computer. So that First you have to setup your project with all the jar files and refresh it.

  2. Check syntax in your project might be some mistake in that.

like image 25
singhHacker Avatar answered Sep 30 '22 21:09

singhHacker


The red exclamation mark in eclipse is because of the problem/issue with the build path.

To find the specific issue look at the problems tab of the eclipse.

Window -> Show View -> Problems (or) Alt+Shift+Q,X

problems tab of eclipse

like image 34
user3227986 Avatar answered Sep 30 '22 23:09

user3227986


If you didn't find any error on the project files, usually it means your build path has some issue. First Check your jar file and jar file locations.

On eclispe, right click on your project, Go to build path and go to Configure build path. Check any errors under libraries. Configure it correctly and refresh the project.

like image 36
spdl83 Avatar answered Sep 30 '22 22:09

spdl83


It appears mostly because of "build path" only. But just in case you are working on a MAVEN project, here is the solution.

Solution

Step 1. Expand your project in Eclipse > Right click on "JRE System Library" > "Build Path" > "Remove From Build path"

Step 2. Expand your project in Eclipse > Right click on "Maven Dependencies" > "Build Path" > "Remove From Build path"

Step 3. Reach out to your local repository and follow below path "C:\Users\userName\.m2\repository" and delete everything inside repository folder

Step 4. Refresh your project in Eclipse

Step 5. Right Click on your project > "Maven" > "Update Project"

Step 6. Just refresh your project and now we are Ready to GO..

like image 41
Ankush kumar Avatar answered Sep 30 '22 21:09

Ankush kumar


In my case show hidden files was enabled and i had added hidden jar file extensions along with the original jars. Adding only the jar files except the hidden files solved the problem

like image 21
sooraj Avatar answered Sep 30 '22 23:09

sooraj


It can appear when any other file other than .jar is added in the jar library. To fix this, remove the file and clean the project.

like image 43
Shailesh Patel Avatar answered Sep 30 '22 22:09

Shailesh Patel


If it is maven project and your project view having no error. Then try the following steps

Right click the project ---> maven --> update maven

It works for me.

like image 24
Rajesh Avatar answered Sep 30 '22 23:09

Rajesh