原因:
1.可能是jar包路径问题
解决方法:鼠标右键点击项目--Build path---Configure Build Path 把错误的jar路径重新设一下
2.关联的项目被删除
解决方法:鼠标右键点击项目--Build path---Configure Build Path 把关联的项目remove
3.jar路径是对的,但没加载出来;例如:maven中的某个jar包没加载出来,maven目录中有,但是在problems窗口显示某个jar包没有加载出来;
解决方法:进入本地maven仓库,删除对应的jar包文件,重新更新maven(右击项目--点击maven--点击updateProject)
总结:出现该问题解决方法是先看problems窗口的问题,如果有关于jar的错误描述信息或者项目依赖错误则解决了该问题项目就好。