I am having some trouble updating the compiler compliance of my eclipse workspace (I am actually using RTC, but it is essentially eclipse). Currently, it uses a jdk of 1.6 so I can change the JDK compliance to a limit of 1.6.
However, I am using jdk 1.7 for my project -I have added it as a JRE -
preferences --> Java --> Installed JRE --> added jre with the jdk 1.7 directory.
However, even though I use this as the default JRE it does not allow me to change the compiler compliance level to 1.7.
I am guessing that there is something I am missing.
Any help would be greatly appreciated
The Compiler compliance level is Version Dependent in eclipse. If you are using Eclipse 3.7 or lower then you won't get 1.7 compliance. Use Eclipse JUNO or higher.
For more on JDT Core 7 and its release related information
UPDATE:
Even eclipse 3.7.1 version supports Java 7 features and compliance level.