Openfire 4.4.1 Run configuraion with eclipse

Hi Team,

I have recently clone the src code of openfire from the git hub and checked out version 4.4.1.

i am done with the compilation and worked well not as per documentation i am trying to run the distribution but it always returns the error saying

./openfire.sh: 21: ./openfire.sh: shopt: not found
Error: Could not find or load main class 4.4.1.Openfire.distribution.target.distribution-base.lib.log4j2.xml

If i try from eclipse error is something diff after adding all the configuration for startup and vm arguments in Run configuration.

Error(Eclispe)

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

Before this i was using 4.1.3 and everything was working perfectly but after migarating the version 4.4.1 with maven build i am facing this issue.

So what is the solution to get it out from it ?

Thanks,
Hiren Vavadiya