Yes, there is a WatchService available in the java.nio package (for Java 1.7+) which will do what you need (other classes that will be good to read: java.nio.Paths, java.nio.Watchable, java.nio.FileSystem, and java.nio.Path).
Joined: Jul 21, 2011
Actually i am using java 6 .
Is there any listener method in java 6 to notify when a jar file as added or removed from your project at the run time.
so please replay..