I accidentally excluded a class from the build path, from the compiler errors pane, and I can't figure out how to get it back.
The class isn't visible from any other classes, and it was right before I clicked that fateful menu option.
The class has a little "x" on the icon, whereas none of my other classes do.
EDIT: Figured it out myself. Go to Settings>Project Settings>Compiler>Excludes and delete the entry
Open the Project Structure dialog (File | Project Structure Ctrl+Alt+Shift+S ). In Project Settings, select Project and in the Project compiler output field, specify the corresponding path.
find your project or sub-module and click on it to highlight it, then press F4, or right click and choose "Open Module Settings" (on IntelliJ 14 it became F12) click on the dependencies tab. Click the "+" button on the right and select "Jars or directories..." Find your path and click OK.
In the Project tool window ( Alt+1 ), right-click the node in which you want to create a new class and select New | Java Class. Alternatively, select the node, press Alt+Insert , and select Java Class.
Go to Settings -> Project Settings -> Compiler -> Excludes and delete the entry
2018 update
File -> Settings -> Build, Execution, Deployment -> Compiler -> Excludes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With