title: How can I receive Windows filesystem events in Java?
body: <p>I need to know when a new file appears in a directory.  Obviously, I could poll the file system periodically, but that has all the normal downsides of polling mechanisms.</p>
  
  <p>I know that <a href="http://msdn.microsoft.com/en-us/library/28y7bbdc(VS.71).aspx" rel="noreferrer">windows supports file system events</a>, and this project is already constrained to the Windows platform by other requirements.</p>
  
  <p>Does anyone have experience receiving Windows filesystem events inside a JVM?  If so what are the best practices, patterns, and/or libraries you have used?</p>
  
  <p>A quick google turns up <a href="http://www2.hawaii.edu/~qzhang/FileSystemWatcher/index.html" rel="noreferrer">this library</a>.  Does anyone have experience with it (or any other) that they'd be willing to share?</p>