It seems your Java Version in your eclipse Project Facets is incorrect.
Please follow below steps to correct the java version :
1. Please Right click on the "project" in your Eclipse IDE -> Properties -> Project Facets
2. Select the correct Java version you are using.
3. Apply and close
Please always make sure that Java Version in your eclipse Project Facets is always correct.