Imports cannot be resolved in Eclipse

I’m developing a plugin for openfire in eclipse juno. But first I’m just trying to take an existing plugin and build/compile it myself.

It’s the motd plugin I’m trying to compile, but as soon as I put it into eclipse I get errors for all the imports:

import org.jivesoftware.util.JiveGlobals;

import org.jivesoftware.util.TaskEngine;

import org.jivesoftware.openfire.MessageRouter;

(+more)

Getting these errors:

The import cannot be resolved

I’m pretty sure it’s not a proxy problem as I’ve been through that and fixed the proxy settings and I can now update eclipse and connect to the repositproes but can’t import these !

Anyone have any idea? It would be much appreciated!!

Christine

Do you have the whole Openfire trunk, or just the plugin in your project?

If you have the Openfire project loaded, you just need to make sure that openfire/src/java is added as a source directory. If you only have the plugin loaded, then you need to add openfire.jar to you project classpath.