I am trying to run an existing Java project in Eclipse, and I am very new to Java and Eclipse, so I am unable to figure out why this error is coming in the project.
我正在尝试在Eclipse中运行一个现有的Java项目,而且我对Java和Eclipse非常陌生,因此我无法弄清楚为什么这个错误会出现在项目中。
Here is the complete error:
这里是完全错误:
Description Resource Path Location Type Unbound classpath container: 'JRE System Library [Java SE 6 [1.6.0_65-b14-462]]' in project 'INFO 2413 Server' INFO 2413 Server Build path Build Path Problem
在“INFO 2413 Server' INFO 2413 Server' INFO 2413 Server' INFO 2413 Server Build Path Build Path Path Path问题中,描述资源路径位置类型未绑定类路径容器:“JRE系统库[Java SE 6] [1.6.0_65-b14-462]]”
2 个解决方案
#1
9
- Make sure you have JDK 1.6 installed on your machine and set up in Eclipse. Go to menu Window -> Preferences -> Java -> Installed JREs. If you don't see it, use the "Add" button to point it to your installation directory.
- 确保您的机器上安装了JDK 1.6并在Eclipse中进行了设置。转到菜单窗口->首选项-> Java ->安装JREs。如果您没有看到它,请使用“添加”按钮将其指向安装目录。
- **Right click the project -> Properties -> Java Build Path.
- **右键单击项目->属性-> Java构建路径。
- You should see something like "JRE System Library [Java SE 6 [1.6.0_65-b14-462]] (unbound)". Select this, click edit, and set it to an installed JRE 1.6. Either "Alternate JRE" or "Workspace Default" should work depending on how your Eclipse is configured. You can also try removing the library and re-adding it.
- 您应该看到类似于“JRE系统库[Java SE 6 [1.6.0_65-b14-462]] (unbound)”的内容。选择此选项,单击edit,并将其设置为已安装的JRE 1.6。“备用JRE”或“工作区缺省值”应该根据Eclipse的配置方式而工作。您还可以尝试删除库并重新添加它。
#2
1
You could just go into menu File -> Import -> Existing project into library -> and select the path to your project.
您可以进入菜单文件->导入->现有项目到库->并选择项目的路径。
#1
9
- Make sure you have JDK 1.6 installed on your machine and set up in Eclipse. Go to menu Window -> Preferences -> Java -> Installed JREs. If you don't see it, use the "Add" button to point it to your installation directory.
- 确保您的机器上安装了JDK 1.6并在Eclipse中进行了设置。转到菜单窗口->首选项-> Java ->安装JREs。如果您没有看到它,请使用“添加”按钮将其指向安装目录。
- **Right click the project -> Properties -> Java Build Path.
- **右键单击项目->属性-> Java构建路径。
- You should see something like "JRE System Library [Java SE 6 [1.6.0_65-b14-462]] (unbound)". Select this, click edit, and set it to an installed JRE 1.6. Either "Alternate JRE" or "Workspace Default" should work depending on how your Eclipse is configured. You can also try removing the library and re-adding it.
- 您应该看到类似于“JRE系统库[Java SE 6 [1.6.0_65-b14-462]] (unbound)”的内容。选择此选项,单击edit,并将其设置为已安装的JRE 1.6。“备用JRE”或“工作区缺省值”应该根据Eclipse的配置方式而工作。您还可以尝试删除库并重新添加它。
#2
1
You could just go into menu File -> Import -> Existing project into library -> and select the path to your project.
您可以进入菜单文件->导入->现有项目到库->并选择项目的路径。