当前位置: 代码迷 >> Eclipse >> 出现如下错误提示,请教怎么解决
  详细解决方案

出现如下错误提示,请教怎么解决

热度:20   发布时间:2016-04-23 14:21:07.0
出现如下错误提示,请问如何解决?
javax.servlet.ServletException: [HTTP:101249][ServletContext(id=5338666,name=test,context-path=/test)]: Servlet class com.ht.servlet.CheckAccount for servlet CheckAccount could not be loaded because the requested class was not found in the classpath C:\bea\user_projects\domains\mydomain\applications\test\WEB-INF\classes;C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_test_dir_test.
java.lang.UnsupportedClassVersionError: com/ht/servlet/CheckAccount (Unsupported major.minor version 49.0).
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:834)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

------解决方案--------------------
在高版本的JDK下编译,在低版本的JDK中运行即会出现这种情况。
------解决方案--------------------
请问什么是低版本的啊?1.4吗?
  相关解决方案