Eclipse运行异常:Could not find the main class.

淩亂°似流年 2021-12-09 16:11 434阅读 0赞

Eclipse运行异常:Could not find the main class.
1.首先查询Eclipse的JDK版本 windows> Preferences —> Java —> Installed JREs在右侧的Installed JREs窗口中查看当前使用的JDK版本.
2.点击菜单栏Project —> Properties —> Java Compiler。在其右侧的JDK Compliance中,查看Compiler compliance level中的JDK版本是否与上面查看的JDK版本一致若不一致将其修改即可。

发表评论

表情:
评论列表 (有 0 条评论,434人围观)

还没有评论,来说两句吧...

相关阅读