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

Exception:

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

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