How to debug spark plugin in eclipse, some errors


I asked question in previous thread, now I can trigger my plugin by running the startup under


after copy the myplugin to the plugin folder.

Now I need to debug the plugin,

but I can not get through by using the ANT run under the build.xml

I got the error as following , could you please help to tell me what shall I do to fix this?

Thanks a lot,

Copying 1 file to C:IMWork\Spark\target\sparkplugs\spark\plugins

Exception in thread “Thread-2” java.lang.UnsatisfiedLinkError: no tray in java.library.path

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at org.jdesktop.jdic.tray.internal.impl.GnomeSystemTrayService.(Unknown 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.(Unknown Source)

at org.jivesoftware.spark.component.Notifications.(

at org.jivesoftware.spark.SparkManager.getNotificationsEngine( 6)

at org.jivesoftware.spark.Workspace.buildLayout(

at org.jivesoftware.LoginDialog.startSpark(

at org.jivesoftware.LoginDialog.access$600(

at org.jivesoftware.LoginDialog$LoginPanel$1.construct(

at org.jivesoftware.spark.util.SwingWorker$

at Source)

Please mark my answer as correct before I answer this thread.


There are already some users around no one will reply to as they don’'t honor the answers. So maybe one of them did register with a new nick, while I do not assume this for Yanzi.

But one may really miss the Helpful an Correct buttons, just like the Edit button while the Reply button is usually found very easy as most forums have one.



I did not notice this button. I have a suggestion, use the Yes as the default other than No.:slight_smile:

Actully I never use the forum before and the previous one is the first.

Do not worry, we really appreciate the answer very much.

You have to declare your java native library dir.

So add to your JVM running command in eclipse the following command:


of course you have to use your own directory names.

Hello. I realize this thread is quite old but I’m just getting started with Spark plugin development and getting this error. I’m trying to setup the example plugin in Eclipse. I’ve added the JVM argument as mentioned above. I’m running Sparkplug kit 2.0.7. I know adding the VM argument was recognized because before I added it I was getting a similar but different error: no systeminfo found in java.library.path. Does anyone have any ideas as to what the issue could be?