eclipse项目缺少必需的库,在eclipse中为非必需库缺少必需的库

I'm using Eclipse for Java Develepers (Juno x64 running on Windows 7).

I have a project in which I was trying out a jar I no longer need (args4j), so have removed the dependency. At some point, my PC lost power unexpectedly, and I've since restarted Eclipse.

My project now has an error, "Project 'MyProject' is missing required library: '/path/to/args4j-2.0.21.jar'". I was working with the project for some time after removing the dependency without any issues.

Under the Project Properties > Java Build Path, there's no reference to args4j in any of the tabs.

I've tried:

searching for the string "args4j" in all files within my project, but there are no matches. There are a bunch of references within \.metadata\.plugins\org.eclipse.core.resources\.history\, but I'm reticent to touch them out of fear I might break something else.

[Edit] clean rebuild has no effect.

Does anyone have any idea why Eclipse is complaining, and what I might be able to do to fix it?

解决方案

Please do the following, if one does not solve your problem, skip to the next one:

Check .classpath file in your project folder. You might have a reference there.

Close and re-open the project without closing eclipse, this might rebuild Eclipse resource cache.

Make a clean build after re-opening.

Re-import your project into a clean workspace.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值