场景:
启动main方法时报错:Exception in thread "main" java.lang.UnsupportedClassVersionError: com/wind/cxf/MainServer has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
原因:
Java版本过高
解决:
Eclipse Java版本降级:
当然前提是你要在你的系统中事先将JDK1.6和1.7都安装好
之后配置eclipse中JDK版本,Windows –> Properties
在项目名右键单击,选择Properties
更改java compiler中的java se版本,改成1.6的
更改Project Facets中的java版本,选中1.6的
UnsupportedClassVersionError:version of the Java Runtime only recognizes class file versions up to
最新推荐文章于 2024-03-13 09:42:16 发布