If the project reports an error in reverse, first check whether the jar package has a build path, and then check whether the added jar is installed locally. If it still reports an error, then there may be a problem with the java compiled version of eclipse. Change the 1.5 version to 1.8. Well,
modify the steps:
windows ---> preferences ---->java ---> compile ----> compiler compliance level