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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…