项目运行不了java.lang.UnsupportedClassVersionError: Bad version number in .class file解决思路
项目运行不了java.lang.UnsupportedClassVersionError: Bad version number in .class file
求大神解答,此项目是从别人的机子拷到本机目录去的(之前在svn上直接导入也不行),别人的机子就可以运行。
严重: Error deploying web application directory equip6.0
java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class comon.listener.ApplicationListener)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2858)<br />
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)<br />
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)<br />
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)<br />
at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)<br />
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)<br />
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)<br />
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)<br />
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)<br />
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)<br />
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)<br />
at orre.StandardContext.start(StandardContext.java:4612)<br />
at orre.ContainerBase.addChildInternal(ContainerBase.java:799)<br />
at orre.ContainerBase.addChild(ContainerBase.java:779)<br />
at orre.StandardHost.addChild(StandardHost.java:601)<br />
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)<br />
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)<br />
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)<br />
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)<br />
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)<br />
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)<br />
at orre.ContainerBase.start(ContainerBase.java:1065)<br />
at orre.StandardHost.start(StandardHost.java:840)<br />
at orre.ContainerBase.start(ContainerBase.java:1057)<br />
at orre.StandardEngine.start(StandardEngine.java:463)<br />
at orre.StandardService.start(StandardService.java:525)<br />
at orre.StandardServer.start(StandardServer.java:754)<br />
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
at java.lang.reflect.Method.invoke(Unknown Source)<br />
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)<br />
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
<br />
lINUxS
12 years, 9 months ago