The version of jre mentioned in the eclipse java compiler and project facet is different.
Right click the project -> properties -> project facet and change it into jre version based on your requirement.
Note: Please check the java compiler version also.
Right click on the project -> properties -> java compiler.
Java compiler version and project facet of the project must be same.
Thanks for reading this post……!!!
810 total views, 2 views today