snk
snk

Reputation: 117

Intellij compiler error - failed to copy from temporary location to output directory

IntelliJ was working fine on my machine and suddenly it started to give me these errors when I compile

"failed to copy from temporary location to output directory: path-of-the-temporary-compiled class-in-the-user-temp-directory"

If I remove the module from the project and add it again and compile the file, it works fine for sometime and then starts giving this error.

Tried cleaning up the user dir, shutdown and restart, etc. No luck

IntelliJ IDEA 11.1.3 on Windows 7. Also on IntelliJ IDEA 12.0.1 on Windows 7.

Upvotes: 7

Views: 9209

Answers (5)

Elroy Kanye
Elroy Kanye

Reputation: 1

I got this same error

  • Deleted the file .idea/modules.xml of the project.
  • Rebuilt the project

This worked for me.

Upvotes: 0

E.M.T
E.M.T

Reputation: 33

It's works by set resources config in the pom file

Upvotes: 0

Abhishek Patyal
Abhishek Patyal

Reputation: 514

I got the exact error.
I fixed this problem by Rebuilding the project.

Click on Build -> Rebuild Project..

This will resolve the problem. Thanks.

Upvotes: 5

Hari Rao
Hari Rao

Reputation: 3240

I got the same error and restarted the IntelliJ IDEA which fixed the problem. I think when I restarted, the process was killed and associated files in temp files were delete..

Next time when I get it I will compare the no of files in temp folder before and after restart.

Upvotes: 1

Kuldeep Jain
Kuldeep Jain

Reputation: 8598

I got the same error but did not see any answer to this question so thought of posting my solution(workaround) for this:

As the error mentioned failure to copy from temporary location which was point to Temp folder so I tried cleaning up the Temporary files etc. using Disk Cleanup of C:\ and that resolved the error for me.

NOTE: This is just a temporary workaround, I would love to get a real solution to this. I am using IntelliJ IDEA 12.0.1.

Upvotes: 2

Related Questions