在eclipse里改变项目的属性设置:[project]->[properties]->[Java Compiler]->选中Enable project specific settings,在JDK Compliance->Compiler compliance level中选1.4(或其它你认为合适的),软件会自动提示需要重新编译,重新编译后运行就ok了。
Eclipse中JDK不兼容异常(class file has wrong version 49.0, should be 48.0)的解决方法
最新推荐文章于 2022-09-21 16:56:27 发布