Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: can't save file - 'negative time' error

Tags:

eclipse

When I save a file in Eclipse, it throws an error: "save all failed - negative time".

Can anyone help?

like image 962
feicien Avatar asked Apr 16 '12 10:04

feicien


2 Answers

Don't know if you solved your problem, but putting an answer here in case someone else stumbles onto this.

I see a similar sounding problem here.

Seems like the file you want to save has a bad timestamp. Try touching the file with another editor to update the timestamp, then see if it will work in Eclipse.

like image 63
Tim Avatar answered Oct 12 '22 01:10

Tim


As Tim said, my error was an XML with no Date Modified. Easiest way to do it is open the file with error with notepad and re-save it.

like image 22
r_19 Avatar answered Oct 12 '22 00:10

r_19