当项目部署到tomcat后,tomcat启动时报错:Bad version number in .class file 4 F8 b) s0 `) N9 i C 9 h" a" D4 d1 U5 H) X n原因是编译java时生成的class文件,在运行时用到的JRE和class文件版本不一致造成的。例如JRE是1.5,编译的JDK是1.6。 + ]6 z. a9 q$ \( k, s7 M 5 v: `; q: I" l8 r1)这时候首先确认eclipse的编译JDK版本:8 S% l) T" O1 w3 C" k. H6 V