I have an application that reads the contents of a file. While the program is running, it is checking the .lastModified() of that file, and when it has been modified, it reloads the contents of the file. This all seems to be working properly.
If I have that external file open in Eclipse and save the file, I receive an error stating: "The requested operation cannot be performed on a file with a user-mapped section open".
If I open the same file in, say, textpad, I can save the file just fine and see the reloaded results in my application.
Why does this happen and how can I get around it in Eclipse?