The type xxx cannot be resolved. It is indirectly referenced from required .class files xxx

在eclipse中导入项目,出现以下两种error

Description	Resource	Path	Location	Type
The project was not built since its build path is incomplete. Cannot find the class file for org.hibernate.LockOptions. Fix the build path then try building this project	tp_wages		Unknown	Java Problem

Description	Resource	Path	Location	Type
The type org.hibernate.LockOptions cannot be resolved. It is indirectly referenced from required .class files	ILeaveDao.java	/zttech-bpm/src/main/java/com/zttech/bpm/activiti/demo/dao	line 1	Java Problem

很可能就是jar下载不完整,找到org.hibernate下的所有文件全都删除,然后maven-update。
有可能删除的时候jar正在使用,那就先关掉eclipse然后删除,后续操作一样。
网上也有说只要重启eclipse就好了,不过对我不管用。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章