I wish to find out does anyone have problem compiling JDK 7 code with Eclipse? Because currently I only able use JRE 7 in Eclipse to test run but as for trying to use JDK 7 features into my code, it will state it will not support.
Eclipse 3.8 M1 (Juno) is the earliest stable version to have support for Java 7. Java 7 support will also be available in the upcoming 3.7.1 release.
Unfortunately, since Java 7 released after Eclipse 3.7 (Indigo) release, the Java 7 support could not make it to 3.7.
来源:https://stackoverflow.com/questions/7054789/eclipse-and-jdk-7