2012年11月11日

          前兩天休眠后機器非正常關機,重新啟動后運行eclipse。悲催的發現eclipse 無法啟動了。每次雙擊啟動后,確定完workspace后,顯示啟動畫面,沒過一會就進入灰色無響應狀態。啟動畫面始終停留在Loading workbench狀態。反復重啟,狀態依舊。嘗試解決。

          搜索了一下,應該是非正常關機導致eclipse工作區的文件狀態錯誤導致。在工作區目錄中,有一個.metadata目錄,里面是工作區及各插件的信息,刪除此目錄可以解決問題。

          為保險起見,將.metadata改名移動到/tmp目錄,再重啟eclipse,果然可以正常啟動eclipse了,但原來工作區的配置和項目信息也都消失,直接顯示的是歡迎界面。

          如何恢復原來的project配置呢?嘗試對比了當前的.metadata和之前備份的那個目錄,發現缺少了很多配置文件。試著一點點恢復一些目錄,但效 果不理想。因為不知道哪些文件(目錄)可以恢復,哪些恢復會帶來問題。將備份的整個目錄恢復試試?Eclipse又回到了無法啟動的狀態了。

          怎么辦?這時想到啟動停止時顯示的狀態:"Loading workbench",看來和這個workbench插件有關。查看原來的.metadata/.plugins目錄,在眾多文件夾中
          com.collabnet.subversion.merge          org.eclipse.search
          org.eclipse.compare                           org.eclipse.team.core
          org.eclipse.core.resources                  org.eclipse.team.cvs.core
          org.eclipse.core.runtime               org.eclipse.team.ui
          org.eclipse.debug.core                 org.eclipse.ui.ide
          org.eclipse.debug.ui                   org.eclipse.ui.intro
          org.eclipse.dltk.core                    org.eclipse.ui.views.log
          org.eclipse.dltk.core.index.sql.h2     org.eclipse.ui.workbench
          org.eclipse.dltk.ui                           org.eclipse.ui.workbench.texteditor
          org.eclipse.epp.usagedata.recording    org.eclipse.wb.discovery.core
          org.eclipse.jdt.core                             org.eclipse.wst.internet.cache
          org.eclipse.jdt.ui                                 org.eclipse.wst.jsdt.core
          org.eclipse.ltk.core.refactoring          org.eclipse.wst.jsdt.ui
          org.eclipse.ltk.ui.refactoring            org.eclipse.wst.jsdt.web.core
          org.eclipse.m2e.core                    org.eclipse.wst.sse.ui
          org.eclipse.m2e.logback.configuration  org.eclipse.wst.validation
          org.eclipse.mylyn.bugzilla.core        org.eclipse.wst.xml.core
          org.eclipse.mylyn.tasks.ui             org.tigris.subversion.subclipse.core
          org.eclipse.php.core                   org.tigris.subversion.subclipse.graph
          org.eclipse.php.ui                     org.tigris.subversion.subclipse.ui

          發現了兩個: org.eclipse.ui.workbenchorg.eclipse.ui.workbench.texteditor

          不管三七二十一,刪了這兩個目錄,重新啟動eclipse。正常啟動且原項目信息正確加載。
          posted @ 2012-11-11 14:15 胡鵬 閱讀(6458) | 評論 (7)編輯 收藏

          導航

          <2012年11月>
          28293031123
          45678910
          11121314151617
          18192021222324
          2526272829301
          2345678

          統計

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          agile

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 崇文区| 宝兴县| 姚安县| 东源县| 绍兴县| 公安县| 定日县| 久治县| 平塘县| 永平县| 札达县| 梓潼县| 石城县| 武安市| 遂宁市| 闸北区| 周至县| 莒南县| 肃北| 岳池县| 和龙市| 特克斯县| 汝城县| 东城区| 成武县| 萨迦县| 开化县| 平罗县| 蒙城县| 兴安县| 彰化市| 正镶白旗| 焦作市| 咸宁市| 乐昌市| 黄梅县| 虞城县| 许昌县| 中牟县| 神池县| 禄劝|