I\'ve been trying to use FileLock to get exclusive access to a file in order to:
FileLock
Java file locks are specified only to protect against other locks, and nothing else. How they behave on specific platforms, i.e. any extra semantics, is platform-specific.