AnsweredAssumed Answered

Error in compiling Spark Plugin.

Question asked by oldboy on Jul 29, 2010
Latest reply on Jul 29, 2010 by hwxia

I am trying to complie second example in Spark Development Guide. To  add Workspace Tab.

package org.jivesoftware.spark.examples;
package org.jivesoftware.spark.Workspace;

import org.jivesoftware.spark.plugin.Plugin;

* Implements the Spark Plugin framework to display the different possibilities using
* Spark.
public class ExamplePlugin implements Plugin {
/*** Adds a tab to Spark*/

private void addTabToSpark(){

// Get Workspace UI from SparkManager
Workspace workspace = SparkManager.getWorkspace();
// Retrieve the Tabbed Pane from the WorkspaceUI.
JTabbedPane tabbedPane = workspace.getWorkspacePane();
// Add own Tab.
tabbedPane.addTab("My Plugin", new JButton("Hello"));

End OF File


When I complie with javac it errors me


javac class, interface, or enum expected
package org.jivesoftware.spark.Workspace;
1 error


Does any one have idea whats wrong with my code?  Thanks for helping.