i compiled a spark source. but the error is MAIN_IMAGE not found. i copied a images in C:\Documents and Settings\Administrator\Spark\resources\images.
Please help me!
I''m having the same problem here at the moment. I tried to build the example plugin as a start for my first plugin ... but I am rewarded with the MAIN_IMAGE not found. error.
Maybe someone can give me a hint on what to do? (using eclipse, imported all the stuff described in the documentation).
MAIN_IMAGE not found.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.GridBagLayout.GetLayoutInfo(Unknown Source)
at java.awt.GridBagLayout.getLayoutInfo(Unknown Source)
at java.awt.GridBagLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
This is the third posting in this forum concerning this topic, I hope it is the first one that gets an answer
Thanks and bye,
Nevermind, it works despite of the error message ... I just didn''t realize there was a new tray icon
Did this issue of 'MAIN_IMAGE Not Found' get resolved? If so, I would appreciate any help in this matter, as I am having the same problem. I am running the plug kit on Eclipse. Thanks, Sundar
Below is the error message. I think same with the one posted by the other programmer.
I can paste myplugin.jar to plugins in another spark installation and see that it is working.
But I wanted to start running from eclipse, hoping that then I can trace the plugin code, put break points etc....
Any other recommendations about debugging plugins (or pointers) will be appreciated.
(This is my first plugin project.)
I also have the same problem - anyone knows what the problem might be ? thanks
Maybe it missing some jar
Which jar and how to point to it?
Since other people get it too, there must be something missing in the guide describing compiling plugins.
the how-to-build.txt file from sparkplug kit says:
2) Place any dependencies (besides Spark) into the lib directory.
but I guess that is for additional libraries you use, and I don't use any additional libraries.
Thanks in advance,
hi,Maybe I found the reason.You can check the spark.properties file in the package "/org/jivesoftware/resource" .You can find the key "MAIN_IMAGE" ,just verify the value with the file name in "image" package. I found some file's extendName is changed from png to gif or vice verse.
Retrieving data ...