首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Linux(Ubuntu )中配置Jnotify?

如何在Linux(Ubuntu )中配置Jnotify?
EN

Stack Overflow用户
提问于 2011-10-11 13:00:45
回答 1查看 1K关注 0票数 0

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

现在,我希望能够在Ubunt中工作。请帮助我按照什么程序。我在java类路径中包含了Jnoitify.jar。但不起作用。

通过遵循上面的规则,就会出现下面的异常。

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-10-23 19:18:44

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7726426

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档