I am trying to build a fileSystemWatcher in java (similar to FileSystemWatcher in C#). Please suggest whether java has any built in framework capability for this or suggest/
Check out the Apache Commons JCI FAM (FileAlterationMonitor). The unit tests should give you an idea how to use it.