Bonjour, j'ai vu Que Jnotify faisait ça
JNotify is a java library that allow java application to listen to file system events, such as:
* file created.
* file modified.
* file renamed.
* file deleted.
Le problème c'est que je n'ai rien compris sur la façon de l'intégrer à mon système.
Si quelqu'un peut m'aider(http://jnotify.sourceforge.net/)
J'ai fait (j'ai decompadter l'archive dans Home/user/Jnotify/
To use JNotify, you need to have the native library (jnotify.dll or jnotify.so) in your java.library.path. to do that, you need to use the -Djava.library.path prameter when you run the java application. for example:
java -cp jnotify.jar -Djava.library.path=/home/user/Jnotify/libjnotify.so
Partager