在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就好了,不過對我不管用。