【发布时间】:2011-10-11 13:00:45
【问题描述】:
我在 Windows 中使用过Jnotify。我在 SYSTEM 文件夹和 SYSTEM32 中复制了 DLL 文件 并将 Jnotify.jar 包含在构建路径中。这个程序运行良好。我在 Windows 系统中得到了 jnoitify 提供的所有通知。
现在我希望 jnotify 在 Ubuntu Linux 中工作。请帮助我应该遵循什么程序。我在我的 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)
【问题讨论】:
标签: java linux ubuntu-11.04 jnotify