Manu Chadha
Manu Chadha

Reputation: 16729

java.io.FileNotFoundException for .cache file in IntelliJ

My project is IntelliJ was all fine and suddenly I started getting the following error

Loading project definition from C:\Users\Manu\Documents\manu\codingjedi\code_related\code\frontend\web\project
java.io.FileNotFoundException: C:\Users\Manu\Documents\manu\codingjedi\code_related\code\frontend\web\project\target\config-classes\$999b06365add2ae5fadc.cache (The system cannot find the file specified)

I am unable to compile my code due to this. What is the issue?

Upvotes: 1

Views: 1059

Answers (2)

uwolfer
uwolfer

Reputation: 4516

Whenever you have caching issues in IntelliJ, you can try to use the Invalidate Caches / Restart action in the File menu. Please read the displayed messages carefully ("WARNING: Local History will be also cleared.").

Another thing you could try: Rebuild Project in the Build menu.

Upvotes: 0

Manu Chadha
Manu Chadha

Reputation: 16729

worked after removing (by renaming) the project/target directory and rebuilt the project. It created a new target directory in project and things are working again

Upvotes: 1

Related Questions