Your code has been compiled with Java 8, while you are trying to run it with Java 7.
Note that Eclipse has it's own compiler and does not use the one from the JDK and most probably
it is configured to use Java 8. Check you eclipse compiler preferences.