Eclipse: Frustration with Java 1.7 (unbound library)(Eclipse:对 Java 1.7(未绑定库)的不满)
问题描述
I'm having trouble with a brand new project in a brand new installation of Eclipse. Repro steps:
Download this version of Eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliosr
Unzip to c:program fileseclipse java
Launch Eclipse; choose a workspace
File > New > Java Project
Project name: Hello World. JRE: "Use an execution environment JRE: JavaSE-1.7"
Hit Next, go to the Libraries tab. The only entry is JRE System Library [JavaSE-1.7] (unbound). What does "unbound" mean? How do I fix it?
Hit Finish.
Expected: Brand new project works fine.
Actual: There are two errors:
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 'HelloWord' HelloWord Build path Build Path Problem
What am I doing wrong here?
Update: Perhaps I don't actually have the Java 7 JDK on my machine. How can I be sure?
Update 2: Looks like Java 7 is in fact not out yet. Sweet.
1) Find out where java is installed on your drive, open a cmd prompt, go to that location and run ".java -version" to find out the exact version. Or, quite simply, check the add/remove module in the control panel.
2) After you actually install jdk 7, you need to tell Eclipse about it. Window -> Preferences -> Java -> Installed JREs.
这篇关于Eclipse:对 Java 1.7(未绑定库)的不满的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse:对 Java 1.7(未绑定库)的不满


基础教程推荐
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 降序排序:Java Map 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01