powered by Jive Software

Cannot build plugin

Buildfile: build.xml

clean:

Deleting directory D:\Install\Jabber\sparkplugs\builder\build\classes

compile:

Created dir: D:\Install\Jabber\sparkplugs\builder\build\classes

Compiling 1 source file to D:\Install\Jabber\sparkplugs\builder\build\classes

D:\Install\Jabber\sparkplugs\builder\src\examples.java:9: class ExamplePlugin is public, should be declared in a file named ExamplePlugin.java

public class ExamplePlugin implements Plugin {

^

D:\Install\Jabber\sparkplugs\builder\src\examples.java:3: cannot find symbol

symbol : class Plugin

location: package com.jivesoftware.spark

import com.jivesoftware.spark.Plugin;

^

D:\Install\Jabber\sparkplugs\builder\src\examples.java:9: cannot find symbol

symbol: class Plugin

public class ExamplePlugin implements Plugin {

^

3 errors

Structure of a Plugin

D:\Install\Jabber\sparkplugs\builder\build

D:\Install\Jabber\sparkplugs\builder\dir

D:\Install\Jabber\sparkplugs\builder\how-to-build.txt

D:\Install\Jabber\sparkplugs\builder\lib

D:\Install\Jabber\sparkplugs\builder\plugin.xml

D:\Install\Jabber\sparkplugs\builder\src

D:\Install\Jabber\sparkplugs\builder\build\build.xml

D:\Install\Jabber\sparkplugs\builder\build\classes

D:\Install\Jabber\sparkplugs\builder\lib\spark.jar

D:\Install\Jabber\sparkplugs\builder\src\examples.java

Hi Serge,

Looks like your file name (examples.java) doesn’'t match your class name (ExamplePlugin). Try renaming the file to ExamplePlugin.java and try building the sparkplug again.

Hope that helps,

Ryan