project to compile a problem and needs jdk version of the three should be the same, in order to compile.
1, on the right project properties-> project Facets-> modify the right of the version consistency
2, window-> preferences-> java-> Compiler-> Compiler compliance level is provided to the right of
3, window-> preferences-> java-> Installed JREs-> set or select the right Installed JREs