【问题标题】:How to configure Jnotify in Linux(Ubuntu OS)?如何在 Linux(Ubuntu OS) 中配置 Jnotify?
【发布时间】: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


    【解决方案1】:

    通过设置本地库的路径,我可以在 Linux 中配置和运行 jnotify

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-19
      • 1970-01-01
      • 2016-01-07
      • 1970-01-01
      相关资源
      最近更新 更多