Eclipse升級後匯入外掛程式的方法

來源:互聯網
上載者:User

標籤:android   io   使用   for   strong   sp   div   on   bs   

昨天把eclipse 從 indigo(3.7) 升級到了 juno(4.2). 啟動 eclipse 發現從前裝的 android 和 maven 外掛程式都不見了.

 

$ ls .eclipse/

org.eclipse.platform_3.7.0_1543616141  org.eclipse.platform_4.2.0_1543616141

 

原來每個版本有一個目錄, 4.2的目錄下並沒有 plugins 和 features 目錄.

 

最終我使用了比較暴力的方法, 即把3.7目錄下的 plugins 和 features 目錄拷貝到 4.2 目錄下. 重啟eclipse, 並沒看到外掛程式被啟用.

 

接下來使用了從網上學到的 link 方法:

1. 在本地建一個存放自己的eclipse plugins 的目錄, 比如我的是 ~/pkg/eclipse-plugins.

2. 我要先用maven試一下這種方法, 於是我在上述目錄下建立 maven 目錄.mkdir ~/pkg/eclipse-plugins/maven

3. maven 目錄下一定要建立一個 eclipse 目錄, 來存放關於 maven 的 features 和 plugins. 現在的目錄為 ~/pkg/eclipse-plugins/maven/eclipse.

4. 把關於 maven 的 features 和 plugins 目錄 複製到 ~/pkg/eclipse-plugins/maven/eclipse 下.

5. 在 ~/.eclipse/org.eclipse.platform4.2.01543616141/ 下建立 links 目錄, 並在 links 目錄下建立 maven.link. maven.link 的內容為 path=/home/wuchen/pkg/eclipse-plugins/maven.

 

據說重啟eclipse就該啟用 maven 外掛程式, 但在我這裡沒有奏效.

 

然後, 我在 www.stackoverflow.com 下搜到了一個很優雅的方法:

1. 啟動 eclipse.

2. 菜單 File => import … => Install => From existing Installation, 點確定, 就會彈出對話方塊, 瀏覽選擇 ~/.eclipse 下 3.7的目錄, 就會列出所有曾經安裝在3.7上可以匯入的外掛程式.

3. 選擇好要匯入的外掛程式, 點擊 Finish, 即可.

4. 匯入完成後, 按提示重啟 eclipse, 成功.

 

我認為這才是正道.

 

Date: 2013-05-25 17:18:13 CST

Author: Jiqing Wu

Org version 7.8.11 with Emacs version 24

 

Eclipse升級後匯入外掛程式的方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.