Java 如何在Linux(Ubuntu操作系统)中配置Jnotify?

Java 如何在Linux(Ubuntu操作系统)中配置Jnotify?,java,linux,ubuntu-11.04,jnotify,Java,Linux,Ubuntu 11.04,Jnotify,我在windows中使用过。我复制了SYSTEM文件夹和SYSTEM32中的DLL文件 并在构建路径中包含Jnotify.jar。这个过程很好。我在windows系统中得到jnoitify提供的所有通知 现在我想让jnotify在ubuntlinux中工作。请帮助我应该遵循什么程序。我在java类路径中包含了Jnoitify.jar。但它不起作用 遵循上述步骤,将出现以下异常 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)

我在windows中使用过。我复制了SYSTEM文件夹和SYSTEM32中的DLL文件 并在构建路径中包含Jnotify.jar。这个过程很好。我在windows系统中得到jnoitify提供的所有通知

现在我想让jnotify在ubuntlinux中工作。请帮助我应该遵循什么程序。我在java类路径中包含了Jnoitify.jar。但它不起作用

遵循上述步骤,将出现以下异常

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at net.contentobjects.jnotify.linux.JNotify_linux.<clinit>(Unknown Source)
at net.contentobjects.jnotify.linux.JNotifyAdapterLinux.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.contentobjects.jnotify.JNotify.<clinit>(Unknown Source)
at test.test2.NotifyHandler.sample(NotifyHandler.java:23)
at test.test2.NotifyHandler.main(NotifyHandler.java:42)

通过设置本机库的路径,我能够在Linux中配置和运行jnotify