Resolve Eclipse Project Error: unbound classpath container

Source: Internet
Author: User

Eclipse appears with the following two error message:
    • The project cannot be built until build path errors are resolved HelloWord Unknown Java Problem
    • Unbound classpath container: ‘JRE System Library [JavaSE-1.7]‘ in project ‘java project name‘ java project name Build path Build Path Problem

这似乎是因为MyEclipse 找不到java 1.7 的Classpath造成的,于是我就去检查java的环境变量设置,却发现没有问题。然后我只好去google 看看是否能找到解决方案,最后在stackoverflow 上找到了这个帖子,解决方案的大意如下:

1、检查是否正确安装jdk;

2、正确安装以后,打开MyEclipse/ Eclipse 的 Window -> Preferences -> Java –> Installed JREs 进行配置。

具体的配置方法很简单:

    • 就是点击窗体右边的“add”,然后添加一个“Standard VM”(应该是标准虚拟机的意思),然后点击“next”;
    • 在”JRE HOME”那一行点击右边的“Directory…”找到你java 的安装路径,比如“C:\Program Files\Java\jdk1.7.0_09”

Resolve Eclipse Project error: unbound classpath container

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.