Most of the time we encounter this issue that jdk 1.8 Compiler compliance is not available in Eclipse .Mostly this issue seen in Kepler.
Steps to resolve this issue:-
- Go to Help in Eclipse and Oper Eclipse Market Place option.
- Search for jdk 1.8 for kepler
- Install the required plugin.
- Restart the eclipse.
Enjoy Coding :)