eclipse运行报错has been compiled by a more recent version of the Java Runtime (class file version 56.0)

eclipse运行main函数时出现错误:

java has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0

因为重新配置了别的版本的jdk

解决方法:java 运行报错has been compiled by a more recent version of the Java Runtime (class file version 54.0)

你可能感兴趣的:(eclipse)