Import Errors When Creating Openfire Plugin

Hey guys,

I’m taking a stab at creating an openfire plugin, but I’m running into some issues. So far I have the following code:

package org.jivesoftware.openfire.plugin;


import java.util.ArrayList;

import java.util.Arrays;

import java.util.Collection;

import java.util.Collections;

import java.util.Iterator;

import java.util.List;

import java.util.Map;

import org.jivesoftware.admin.AuthCheckFilter;

import org.jivesoftware.openfire.MessageRouter;

import org.jivesoftware.openfire.XMPPServer;

import org.jivesoftware.openfire.container.Plugin;

import org.jivesoftware.openfire.container.PluginManager;

import org.jivesoftware.openfire.event.UserEventDispatcher;

import org.jivesoftware.openfire.event.UserEventListener;

import org.jivesoftware.openfire.user.User;

import org.jivesoftware.util.EmailService;

import org.jivesoftware.util.JiveGlobals;

import org.xmpp.packet.Message;


  • Registration plugin.

  • @author Ryan Graham.


public class HelloPlugin implements Plugin {

private MessageRouter router;


public void initializePlugin(PluginManager manager, File pluginDirectory) {

router = XMPPServer.getInstance().getMessageRouter();



public void destroyPlugin() {

router = null;



However, Eclipse is giving me a whole host of errors, basically saying that it can’t find all the imports (org.jivesoftware, org.xmpp, and org.slf4j). How would I be able to add these to my project? Or better yet, how would I set up my project to be able to start building the plugin?

Thank you!