Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Intellij showing a cross (x) over the class icon for one of my Java classes?

The icon that IntelliJ (v11.1) usually shows next to Java classes is a blue circle with a C. But for one of my classes this icon has a small "x" in the top left corner. This particular class is in a package with another class, which has just the usual C in a blue circle.

In case it matters, I'm using a Mac.

The class in question is AlertsHandler.

enter image description here

like image 281
vegemite4me Avatar asked Jun 15 '12 16:06

vegemite4me


People also ask

Why I Cannot run Java file in IntelliJ?

Be sure that you have the module for the project set to the Java JDK. Otherwise, try putting a break point on the only executable line in the code and enter debug mode.

Why are my Java files orange IntelliJ?

It means those files aren't part of the project settings. Show activity on this post. mark the java folder as source root.It will solve.


1 Answers

This icon shows that the class is excluded from the compilation, it can be changed in Settings (Preferences on Mac) | Compiler | Excludes.

like image 171
CrazyCoder Avatar answered Sep 17 '22 13:09

CrazyCoder