当项目部署到tomcat后,tomcat启动时报错:Bad version number in .class file $ I# }* p, l: \- d8 o( c - V. f# f1 j+ D6 t原因是编译java时生成的class文件,在运行时用到的JRE和class文件版本不一致造成的。例如JRE是1.5,编译的JDK是1.6。 + \" V2 a6 D7 K1 q0 m. g 0 A1 q% Q2 C8 @( ], A x* ]1 Z/ P1)这时候首先确认eclipse的编译JDK版本:& t( j5 {1 d1 c% O