down vote accepted You compiled the .class for one version and tried to run it on an older version. 解决办法:使编译和运行的jdk 和jre是同一个版本 5 down vote accepted You compiled the .class for one version and tried to run it on an older version.