'Setting build path' has encountered a problem.
Could not write file:
C:\XXXXXXX\.classpath
The cause was copying a workspace from Linux to Windows. The windows hidden attribute is set on the .classpath file. Removing this attribute fixes the error.