打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
stack overflow2
share improve this question分享改善这个问题
edited May 31 at 11:41于2011年5月31日11:41编辑
asked Dec 1at 9:30  于2010年12月1日9:30问道
bluish 微蓝
how did you add these jar in your build path ? 你是如何在构建路径中添加这些jar的?
Jigar Joshi Dec 1   at 9:38    Jigar Joshi 2010年 12月1日9:38
by Properties > Java Build Path > Libraries > Add external JARs
通过“属性”>“Java构建路径”>“库”>“添加外部JAR
If it worked and they don't now, see @dogbane 's answer below..
如果它有效并且现在没有,请参阅下面的@dogbane的回答
add a comment 添加评论
Active   oldest  votes
活跃的   最老    票

22 Answers

22回答
Try cleaning your project by going to the following menu item:
尝试通过转到以下菜单项来清理项目
If that doesn't work, try removing the jars from the build path and adding them again.
如果这不起作用,请尝试从构建路径中删除jar并再次添加它们。
might be a JRE issue. Try selecting an "alternate JRE" in the project properties. – dogbane Dec 1 '10 at 10:17
可能是JRE问题。尝试在项目属性中选择“备用JRE”。 -  dogbane 2010年 12月1日10:17
Clean also worked for me. What exactly happens (everything just went bonkers all of a sudden) and how does Clean help? – Sabre Runner Sep 22 '13 at 12:31
清洁也对我有用。究竟发生了什么(一切都突然疯狂了)以及Clean如何帮助? -  Sabre Runner 2013年 9月22日12:31
This solved the problem also for me; it is not an hibernate project, but a libGdx one, calling my java imports and not jars. Same wondering of @SabreRunner, and also: there is a bug somewhere in the environment tools? – Zac Jul 19 '14 at 10:00 
这也解决了我的问题; 它不是一个hibernate项目,而是一个libGdx项目,调用我的java导入而不是jar。同样想知道@SabreRunner,还有:环境工具中有什么错误吗? -  Zac 2014年 7月19日10:00 
Thanks! Broke my head whole the day until did what you said... – machine_messiah Jun 21 '15 at 15:14
谢谢!一整天都打破了我的头,直到你说了
Worked for me too. Its super frustrating when the contextual help menu is finding your class and hand typing the same import above the ones marked "cannot be resolved" and no errors... – Shanimal Jan 22 '16 at 19:20
也为我工作过。它的超级沮丧当上下文帮助菜单找到你的类和手在同一个导入上方标记“无法解决”并且没有错误... - Shanimal 1月22日'16在19:20

分享知识,分享快乐!希望中国站在编程之巅!

               ----

公众微信号:rsgz520

360图书馆馆号:rsgz002.360doc.com

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
windows系统下JDK1.6环境变量配置
Eclipse SWT应用程序项目的打包与部署
java环境变量配置_行动创造丰收
eclipse环境配置相关问题_迷糊
J2SE的开发环境配置与Path,ClassPath详解
java+eclipse+tomcat+mysql+jdbc
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服