Failed to run Spark (using NetBeans)

Greetings,

pleeeaaasseee help me , i got this exception while running the Spark using NetBeans:

Exception in thread “AWT-EventQueue-0” java.lang.UnsatisfiedLinkError: no tray in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)

at java.lang.Runtime.loadLibrary0(Runtime.java:822)

at java.lang.System.loadLibrary(System.java:992)

at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.<clinit>(Unkn own Source)

at org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown Source)

at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown Source)

at org.jdesktop.jdic.tray.SystemTray.<clinit>(Unknown Source)

at com.jivesoftware.LoginDialog.<init>(LoginDialog.java:88)

at com.jivesoftware.Spark.<init>(Spark.java:50)

at com.jivesoftware.Spark.<init>(Spark.java:35)

at com.jivesoftware.Spark$1.run(Spark.java:115)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java: 242)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:16 3)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Note: i followed the steps in thread @ http://www.jivesoftware.org/community/thread.jspa?messageID=129749#129749

(i anted build.xml), added all *.jar files in the Sparkplugs/spark/lib, Sparkplugs/spark/lib/windows and Sparkplugins/spark/resource

to the CLASSPATH.

so please help, i can’'t think any more

Message was edited by: Dolphina

hey, anybody can help?

Hi,

can you add a System.out.println(System.getProperty(“java.library.path”)); to your code and make sure that libtray.so is located there.

LG

Hello,

Tray is a native lib. ( Tray.dll ).

Try to add a JVM parameter to the run properties:

-Djava.library.path=“C:…\Sparkplugs\spark\lib\windows”

or the following to Linux:

-Djava.library.path=“root/…/Sparkplugs/spark/lib/linux”

Regards,

Thiago

Hi

i moved this thread here:

http://www.jivesoftware.org/community/thread.jspa?threadID=22620&tstart=0

so, hope u help me coz i got a new problem,

Thanx