welly

how to run example plugin (SearchMe.java) ?

Discussion created by welly on Oct 3, 2006
Latest reply on Oct 5, 2006 by welly

Hi Guys,

 

i try to run the plugin example...anyone able to run it?

 

i am running spark 2.0.2 and Sparkplug Kit 1.1.0?

do they have the same library?because spark is running org and Sparkplug Kit is running com...

 

i had compiled SearchMe.java succesfuly, so i do have the class.

 

and my jar contains 2 files which are

 

lib\plugin-classes.jar --> com\jivesoftware\spark\examples\SearchMe.class

and

plugin.xml

 

i have this error and the plugin menu is gone..

 

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/jivesoftware/spark/search/Searchable

     at java.lang.ClassLoader.defineClass1(Native Method)

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

     at java.security.SecureClassLoader.defineClass(Unknown Source)

     at java.net.URLClassLoader.defineClass(Unknown Source)

     at java.net.URLClassLoader.access$100(Unknown Source)

     at java.net.URLClassLoader$1.run(Unknown Source)

     at java.security.AccessController.doPrivileged(Native Method)

     at java.net.URLClassLoader.findClass(Unknown Source)

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

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

     at org.jivesoftware.spark.PluginManager.loadPublicPlugin(PluginManager.java:242)

     at org.jivesoftware.spark.PluginManager.loadPublicPlugins(PluginManager.java:501)

     at org.jivesoftware.spark.PluginManager.loadPlugins(PluginManager.java:163)

     at org.jivesoftware.spark.Workspace$4.finished(Workspace.java:259)

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

     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.pumpEvents(Unknown Source)

     at java.awt.EventDispatchThread.run(Unknown Source)

 

my plugin.xml is

 

 

 

please assist me

 

regards

 

 

Welly

 

Message was edited by: welly

 

Message was edited by: welly

Outcomes