tomcat bad version number in class file 的解决方法

项目没有错误,在项目部署到tomcat后,tomcat启动时报错:

java.lang.UnsupportedClassVersionError: Bad version number in .class file 。。。

这个问题我原来遇到过,原因应该是编译java时生成的class文件,在运行时用到的JRE和class文件版本不一致造成的

看preference javacompiler 以及 tomcat jre 是否一致。

猜你喜欢

转载自mojianpo.iteye.com/blog/1131269