myeclipse中运行main方法时java.lang.UnsupportedClassVersionError: Bad version number in .class file的调整:
造成这种过错是ni的支撑Tomcat运行的JDK版本与支撑application运行的JDK版本不一致导致的. 把它们的JDK版本改成一致步骤如下: 1.Window --> Preferences -->Java --> compiler中的compiler compliance level对应的下拉菜单中选择JDK版本. 2.Window --> Preferences -->Java-->Installed JREs 选择你所安装的jdk版本