2011-10-11 91 views
0

我在windows中使用了Jnotify。我複製了DLL文件SYSTEM文件夾和SYSTEM32 幷包含在構建路徑中的Jnotify.jar。並且此過程正常工作。並且我得到了jnoitify提供的windows系統中的所有通知。如何在Linux(Ubuntu OS)中配置Jnotify?

現在我想讓jnotify在Ubunt 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) 

回答

0

通過設置本機庫的路徑,我就能夠配置和在Linux

運行jnotify
相關問題