Could not find or load main class org.jivesoftware.openfire.starter.ServerStarter

Hi,

Having a problem running openfire through eclipse, I keep getting the error “Error: Could not find or load main class org.jivesoftware.openfire.starter.ServerStarter”.

Any google results are unhelpful, other than changing my source folder to src/java, which I have done.

Any help is much appreciated!!

When the main class is inside a package then you need to run it as follows:

java <packageName>.<MainClassName``>

in you case you need to run it in the following way:

java org.jivesoftware.openfire.starter.ServerStarter

For more information:

Openfire 3.9.3 Javadoc

Lesson: Common Problems (and Their Solutions) (The Java™ Tutorials > Getting Started)

Hi alan,

i can see there is lots of error in your project it is caused by library missing .

Please try to remove all the error by adding library into build path and then try to run the project

with vm argument -DopenfireHome="${workspace_loc:openfire}/target/openfire" in run configuration .

i hope youe error will be solved and your project will run successfully.