Dev@Free

          zJun's Tech Weblog

          [Eclipse] The type XXX cannot be resolved. It is indirectly referenced from required .class files錯誤.....

          來自: i have only belief--wjw



          在Eclipse中遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files錯誤.....,查找的解決辦法如下:

          一:
          It is indirectly referenced from required .class file

          原因:你正要使用的類調用了另一個類,而這個類又調用了其他類,這種關系可能會有好多層。而在這個調用的過程中,某個類所在的包的缺失就會造成以上那個錯誤。

          解決方法:導入缺失的包

          二:
          The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
          The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

          出現(xiàn)以上訊息的原因是因為你裝了多個版本的jre或jdk的關係。本來Eclipse在建立專案時,會自動參照你的jre路徑,但多個版本就沒辦法了。
          你只能手動建立…
          1. 進入window\preferences\java\Installed JREs
          1)按Add
          2)輸入JRE Name, 例JDK1.5.0.03
          3)JRE home directory, 選擇安裝的路徑
          4)按OK
          2. 進入Project\properties\Java Bulid Path
          1)Add library
          2)選JRE System Library後按Next
          3)選workplace default JRE後按finish...

          posted on 2007-10-16 20:55 zJun's帛羅閣 閱讀(100612) 評論(3)  編輯  收藏 所屬分類: 開發(fā)環(huán)境

          評論

          # re: [Eclipse] The type XXX cannot be resolved. It is indirectly referenced from required .class files錯誤..... 2013-09-05 11:29 陳軍

          對我有幫助的分析  回復  更多評論   

          # re: [Eclipse] The type XXX cannot be resolved. It is indirectly referenced from required .class files錯誤..... 2014-01-02 10:29 深藏功與名

          牛逼  回復  更多評論   

          # re: [Eclipse] The type XXX cannot be resolved. It is indirectly referenced from required .class files錯誤..... 2015-04-15 17:44 受益者

          萬分感謝!!  回復  更多評論   

          導航

          <2015年4月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          統(tǒng)計

          常用鏈接

          留言簿(15)

          隨筆分類

          隨筆檔案

          相冊

          收藏夾

          博客

          文檔

          站點

          論壇

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 商都县| 巨鹿县| 苍梧县| 福安市| 佳木斯市| 福贡县| 镇雄县| 霍邱县| 九寨沟县| 新建县| 高雄市| 旌德县| 永州市| 左权县| 马关县| 秀山| 芦溪县| 保靖县| 石首市| 乐至县| 嘉鱼县| 永福县| 新郑市| 丹江口市| 随州市| 遂川县| 北安市| 乌兰县| 延川县| 仙桃市| 阳原县| 大理市| 穆棱市| 仲巴县| 平和县| 德钦县| 大连市| 沙洋县| 瑞丽市| 安平县| 昌邑市|