Java path on ubuntu

Hi Guys,

I have installed openfire then ran through the setup via web… not issues… no trying to log on to admin via web it is giving a java exception error

I think the java path is incorrect… or something on my ubunut 11 server

please help


java.lang.NoClassDefFoundError: Could not initialize class org.jivesoftware.admin.LoginLimitManager$LoginLimitManagerContainer     
at org.jivesoftware.admin.LoginLimitManager.getInstance(     
at org.jivesoftware.openfire.admin.login_jsp._jspService(     
at org.apache.jasper.runtime.HttpJspBase.service(     
at javax.servlet.http.HttpServlet.service(     
at org.eclipse.jetty.servlet.ServletHolder.handle(     
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(     
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(

Are you using Oracle java? I think you must use Oracle java, not the OpenJDK

sorry to keep you pondering… but I reinstalled java then reinstalled openfire and worked like a charm