检查一下选项:

重点看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).

posted on 2016-04-25 10:48  qqhfeng16  阅读(2816)  评论(0编辑  收藏  举报