java.lang.UnsupportedClassVersionError: Bad version number in .class file 错误解决方案引起这个问题的原因是因为你的java文件使用编译的JDK的版本不同造成的。使用相同的JDK版本即可。