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..
如果它有效并且現(xiàn)在沒有,請參閱下面的@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
清潔也對我有用。究竟發(fā)生了什么(一切都突然瘋狂了)以及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,還有:環(huán)境工具中有什么錯誤嗎? - 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