Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I re-include a class into the build path in Intellij IDEA?

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

like image 983
kryo Avatar asked May 26 '11 00:05

kryo


People also ask

How do I change the build path in IntelliJ?

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.

How do I find my class path in IntelliJ?

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.

How do I add a class to a project in IntelliJ?

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.


2 Answers

Go to Settings -> Project Settings -> Compiler -> Excludes and delete the entry

like image 197
Joshua Avatar answered Sep 28 '22 06:09

Joshua


2018 update

File -> Settings -> Build, Execution, Deployment -> Compiler -> Excludes
like image 34
petre Avatar answered Sep 28 '22 06:09

petre