检查一下选项:
重点看jdk的绑定
|
43down voteaccepted
|
Check your Eclipse preferences: Java -> Installed JREs. The one that you're using should be marked and it should be a JDK not just a JRE. Also check your project's build path: Right click on the project -> Properties -> Java Build Path Check in the "libraries" folder whether the JRE System Library is present and if not add it using "Add library"->"JRE System Library" and then select the correct one (from an installed JDK). |
本文介绍了如何在Eclipse中正确配置JDK环境。主要内容包括检查已安装的JRE、确保使用的是JDK而非JRE,并且确认项目的构建路径中包含正确的JRE系统库。
907

被折叠的 条评论
为什么被折叠?



