I have Java program monitoring a remote folder mounted in my local server. But it is not detecting any changes / modification whenever something changed in the remote folder
I guess, Oracle's watch service doesn't detect remote events - that service is for local directories.
You have to use - org.apache.commons.io.monitor.FileAlterationMonitor class of API -
org.apache.commons.io.monitor.FileAlterationMonitor
commons-io commons-io 2.6
You should google for code samples using that class.