Openfire on Eclipse - Error "The declared package does not match the expected package."

Hello

I have been using Openfire for last couple of months and now I am in the need of developing the plugin.

This is the first time I build Openfire source code by myself with Eclipse. But, when I opened source code with Eclipse, I got following error.

“The declared package ‘org.jivesoftware.xxx’ does not match the expected package ‘java.org.jivesoftware.xxx’.”

I think the problem is the “java” folder under top “src” folder. I cannot get this work.

Please help me with how to fix this error.

Thanks in advance.