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

本文详细解析了在Eclipse中导入项目时遇到的两类常见错误:无法找到org.hibernate.LockOptions类文件及类型无法解析的问题,并提供了有效的解决方案,包括清理并重新下载jar包以及使用Maven更新。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值