Friday, June 11, 2010

[javac] Warning: MyClass.java modified in the future.

Uploaded my code to a server in a different timezone(I am UTC+xx. The server's UTX-yy).
So the file modification dates of my source files were later than the current time on the servers. (The server might be thinking these files came through a time machine from future)

What worked for me:
Used the linux "touch" command to set the source file modification dates to current time on server. Don't know the windows equivalent.

Thank you.

1 comment:

  1. Just delete the lines which has been modified in the future date and rewrite them by properly setting the system time to current date and compile clean and build the code again.
    If this doesn't work recreate the project into another workspace or new project.

    Thanks & Regards
    Rasheed Ahamad

    ReplyDelete