How to debug spark plugin in eclipse, some errors

Hi,

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

Spark\target\sparkplugs\spark\bin

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.(Notifications.java:86)

at org.jivesoftware.spark.SparkManager.getNotificationsEngine(SparkManager.java:20 6)

at org.jivesoftware.spark.Workspace.buildLayout(Workspace.java:191)

at org.jivesoftware.LoginDialog.startSpark(LoginDialog.java:711)

at org.jivesoftware.LoginDialog.access$600(LoginDialog.java:72)

at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:490)

at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:132)

at java.lang.Thread.run(Unknown Source)

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

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

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.

LG

Hi,

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:

-Djava.library.path=C:\spark\lib\resources\windows

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?