Issue
Here is the error I'm having trying to build something in Eclipse 3.8 on Windows 7 Pro:
BUILD FAILED
C:\path\to\build.xml:140: Problem creating war: C:\path\to\war\abc.war (Access is denied) (and the archive is probably corrupt but I could not delete it)
Total time: 1 second
I found this already: problems creating war file
However, I'm running Eclipse as Administrator. In theory, wouldn't this rule out UAC? How about anti-virus?
Eclipse is also installed in the following path:
C:\Users\me\MyCustomApps\eclipse-indigo\eclipse\workspace
Solution
The .war file was being written in a folder on the workstation. This folder was shared with a local CentOS VMWare instance. I had a terminal in CentOS that had that path loaded due to the fact that I had recently copied the .war file to my webapps folder.
I simply navigated away from this shared folder in the CentOS terminal window and was able to build the war file without any issues in Eclipse.
Answered By - TechFanDan
Answer Checked By - Marilyn (JavaFixing Volunteer)