The inotify-java API provides an event-based mechanism for monitoring Linux file system events using the inotify interface provided by glibc (versions 2.4 and up) and the Linux kernel, starting from 2.6.13.
Simple, easy to use feature-complete support for inotify
Low memory footprint API uses blocking calls yielding low CPU usage
Extract the archive.
tar xzf inotify-java-[version].tar.bz2 Build it.
ant release -Dversion=[version]
Copy libinotify-java.so to a suitable location.
cp build/native/libinotify-java.so \
Copy inotify-java-[version].jar to a suitable location.
cp dist/inotify-java-[version].jar \