Eclipse resolve “resource is out of sync with the filesystem” permanently

If you are a regular Eclipse user than you might have got this error many times. The error simply says, “you’ve made changes in files in your workspace from outside eclipse”. The simplest solution would be to select the project and press F5 (Right click -> Refresh). This will re-sync any external changes to the file system and eclipse would now know what exactly is in your workspace. But it is cumbersome to do this every time any of your file changes due to external agent.

The best way would be to let Eclipse automatically handle any external changes in file system. So that when you compile the code it never gives the error “resource is out of sync with the filesystem”.

Do do this, select following option:

Window -> Preferences -> General -> Workspace

Now depending on your version of Eclipse you will get either of following options in workspace window.

  • Refresh Automatically
  • Refresh using native hooks or pooling

One thing we should highlight here is that Eclipse uses polling mechanism to check whether there was any change in the filesystem. This might have a performance impact. So choose wisely. Frankly I am using this feature for quite sometime now and I don’t see that much of impact.

Get our Articles via Email. Enter your email address.

You may also like...


  1. Rashi Coorg says:

    Thanx a lot :) It helped me.. I like all ur posts.. It’s very useful.. I am a frequent visitor to ur site.. Thanq so much!

  2. Jan says:

    Do you have some practice while running an additional compiler like the CoffeeScript oder SASS/Compass Watchdog? We’ve noticed that especially on windows (7), the refreshing won’t work — with the both options enabled. Refreshing on “Refresh” or “on access” works.

  3. franjo says:

    Thanks man, your site is really helping me a lot with all these tools weird problems.

  4. Raul says:


  5. rohit says:

    thanks this helped

  6. Serg says:

    thank you very much!!!! you helped me, i didnt know how to resolve it :)

  7. Test says:

    Thanks Very much !!

  8. Muzzamil says:

    Hi, thanks man, it worked….

  9. naresh says:

    thanks viral,it worked

  10. Prasanna Balakrishnan says:

    Thanks a lot , Very saved me lot of time……

  11. adhi says:

    good tutorial bro :)

  12. Aamir says:

    Thanks, it helped me.

  13. Thanks, it works

  14. francaill says:

    Thanks, very helpful

  15. Danny says:

    Thank you man ;)

  16. dhruven says:

    good solution. just to add if it does not work even after above solution, please restart the eclipse. That may load the files correctly.

  17. a says:

    Many many many thanks!

  18. xD says:

    one million of thanks ^^

  19. mouli says:

    Many many many thanks!

  20. Anand says:

    Thanks a lot Viral ! Your site has helped me a lot many times! Cheers. Love your crisp writing style.

  21. Alessandro Martini says:

    Add more a lot of thanks.

  22. raviteja kadem says:

    Thanks a lot it worked for me.

Leave a Reply

Your email address will not be published. Required fields are marked *