JNotify on Mac OS X?

后端 未结 2 1368
别那么骄傲
别那么骄傲 2021-01-18 10:50

I want to try JNotify, the plugin library for watching file system changes, but cannot figure out how to configure it. The web page for JNotify says that \"java.library.path

相关标签:
2条回答
  • 2021-01-18 10:54

    java.library.path is a Java system variable, you have to set this particular one by using the -D switch when launching the program:

    java -Djava.library.path=/path/to/dylibs your.MainClass
    

    It should be possible to tell Netbeans to add some command line parameters when starting your program somewhere in your project's properties.

    On OS X, the directory you want is wherever the .dylib files are, not the .so ones.

    0 讨论(0)
  • 2021-01-18 11:03

    JNotify does NOT work on MAC OSX 10.6.8. As simple as that. :( On Linux works fine! File modified is not correctly reported no matter what you try.

    0 讨论(0)
提交回复
热议问题