I installed JDK 7 and Eclipse 3.6M6. Then, I added JRE 7 as a new JRE execution environment in Eclipse, and set the compiler compliance level to Java 7. I can compile the fo
See http://wiki.eclipse.org/JDT_Core/Java7, http://wiki.eclipse.org/PDE/API_Tools/Java7 and Bug 288548 for the ongoing support of Eclipse for Java 7. And see http://wiki.eclipse.org/JDT/Eclipse_Java_7_Support_%28BETA%29 for instructions on how to evaluate Java 7 in Eclipse.
UPDATE 1: The BETA_JAVA7
branch has been merged to HEAD
and R3_7_maintenance
(See the eclipse-dev archive).
UPDATE 2: Eclipse 3.7.1 (Indigo SR1) supports Java 7.