title: Java: Watching a Directory for Changes
body: <p>I want to create a listener to detect directory change recursively (the main directory and its subdirectories). After a web search I found this <a href="http://download.oracle.com/javase/tutorial/essential/io/notification.html" rel="nofollow">link</a> that explains the use of the class WatchService from the Package java.nio.file that api exactly meets my needs but unfortunately it is only available in Java 7!
  Then I return  to search again in order to find a <a href="http://jpathwatch.wordpress.com/" rel="nofollow">framework</a> that allows the same and is compatible java 5 and java 6 but again there was a problem, because recursion is available for Windows and my application should use Linux!!
  Can you offer me a solution: another framework, a way to do..</p>