As suggested by @Alex Fitzpatrick, I added -clean to the eclipse configuration file and the error disappeared.
-clean