'Eclipse: Unable to build the project

The project was not built due to "Resource already exists on disk: ''.". Fix the problem, then try refreshing this project and building it since it may be inconsistent

I am getting above error whenever I am trying to build the project. Earlier the project was running fine, but all of sudden it stopped running and giving this error.

Eclipse version: Eclipse Java EE IDE for Web Developers. Helios Service Release 1 JRE: jdk1.5.0_22



Solution 1:[1]

  1. Try refreshing the project, clean and rebuild.
  2. Right click on the error, click "Quick Fix" if this is enabled.
  3. Right click on the error, click "Properties" for the details. Try to delete the resource in question from outside eclipse, refresh, clean and build.

Solution 2:[2]

  1. Exit Eclipse.
  2. Delete all the java class files (These files located in /bin or like that).
  3. Open Eclipse and wait a minute. The project will be rebuilt by Eclipse(auto).

Solution 3:[3]

I had to go to ST_SAMI\web\WEB-INF\classes and delete EVERYTHING under the directory in question. Refreshed and cleaned project and all was well again.

Version: Helios Release (Also J2EE release for web developers)
Build id: 20100617-1415

Solution 4:[4]

Project right click --> Build Path --> Configure Build Path and you have seen Project source paths.And attention please,

If you have more than one source, you should probably encountered this problem. You should examine each source.

Source click --> edit --> next --> and you seen exclusion patterns and inclusion patterns.

For example, your directory path

source
  |
  \------ExDir
  |
  \------IncDir

You must select for inclusion only IncDir and select for Exclusion only ExcDir

  • If you select for exclusion source Directory you encounter this problem.

Solution 5:[5]

I placed the filter at Resource Filers sections which I removed and it started building properly. Path - Right Click on project, Go into Properties, Select Resource Filters and remove any filter which is associated with bin folder.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nivas
Solution 2 mkj
Solution 3 n4rzul
Solution 4
Solution 5 user7615535