天天看點

Eclipse Juno在ubuntud的安裝(SVN)

下載下傳:
http://www.eclipse.org/downloads/?osType=linux

直接解壓後,移到 /usr/local/,直接運作即可。

————————————————————————————————————————————————————————————————————————           

當下載下傳完eclipse-rcp-juno-SR1-linux-gtk-x86_64.tar.gz這個後,直接右擊它點選extract here即可解壓。當解壓完後如果要把eclipse目錄複制到/usr/local/eclipse(路徑最好不要有中文)下,隻要執行:

 sudo cp -r Downloads/eclipse /opt/eclipse

或者sudo cp -r eclipse/ /opt/eclipse

如果不加-r,則會出現cp:omitting directory這個提示資訊。(如果要複制一個檔案夾,就要加上-r)

 附下載下傳位址:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR1/eclipse-rcp-juno-SR1-linux-gtk.tar.gz

在啟動eclipse的時候有時會出現如下錯誤:

A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…

解決方法:

在終端進入eclipse目錄,然後輸入

sudo mkdir jre

cd jre

sudo ln -s /opt/jdk1.6.0.39/bin bin(/opt/jdk1.6.0.39為你的JDK目錄)

然後再執行就OK

如何在桌面上建立eclipse的快捷方式?

方法如下:

在終端下輸入

1、

sudo gedit /usr/share/applications/eclipse.desktop

然後編輯該檔案,在該檔案中加入

[Desktop Entry]

Encoding=UTF-8

Name=Eclipse Platfrom

Comment=Eclipse IDE

Exec=/opt/eclipse/eclipse

Icon=/opt/eclipse/icon.xpm

Terminal=false

StartupNotify=true

Type=Application

Categories=Application;Development;

說明:

Exec=/opt/eclipse/eclipse   這個是你的eclipse目錄位置

Icon=/opt/eclipse/icon.xpm  這個是你的eclipse圖示位置

對于kenpler版本,不出現菜單,做如下改動:

[Desktop Entry]
Version=4.3.0
Name=Eclipse
Comment=IDE for all seasons
#Exec=/home/USERNAME/Dokument/eclipse/eclipse
Exec=env UBUNTU_MENUPROXY=0 /home/USERNAME/Dokument/eclipse/eclipse
Icon=/home/USERNAME/Dokument/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application
           

The row 

Exec=env UBUNTU_MENUPROXY=0 /home/USERNAME/Dokument/eclipse/eclipse

, part referenced in the post I pointed to, is the one that makes menus visible, et voila! :)

In my case this file (

eclipse.desktop

) resides in 

/usr/share/applications/

2、給該檔案賦予權限

sudo chmod u+x eclipse.desktop

3、然後打開/usr/share/applications目錄 把eclipse圖示copy to desktop即可

cd /usr/share/applications
sudo ln -s /usr/local/development/eclipse-indigo-3.7.2/eclipse.desktop      
——————————————————————————————————————————————
           

eclipse juno的svn的安裝

剛剛下來最新的eclipse的版本juno,這個版本的預設界面看上去有點不太習慣,這個可以改,這裡我們介紹一下這個最新版本的SVN的安裝 

1.下載下傳最新的這個版本的SVN 

http://www.eclipse.org/subversive/latest-releases.php 

實際的下載下傳位址http://www.eclipse.org/downloads/download.php?file=/technology/subversive/1.0/builds/juno/Subversive-1.0.0.I20120601-1700.zip 

2.在eclipse裡根目錄裡,dropins裡建一個目錄,名字叫svn(這個名字随便),再在svn下面建一個目錄eclipse.在根目錄裡建一個目錄links目錄,并建一個svn.link檔案,在裡邊寫上path = dropins/svn 

3.解壓下載下傳的SVN包,把feature和plugins兩個檔案夾考進剛才建的svn/eclipse目錄裡 

4.還要下載下傳subversive connector,這個是要和SVN一起用的,要找到适用自己系統的版本,下載下傳位址:http://community.polarion.com/projects/subversive/download/eclipse/2.0/builds/ 

我的這個版本下的是http://community.polarion.com/projects/subversive/download/eclipse/2.0/builds/Subversive-connectors-2.3.0.I20120520-1700.zip 

5.解壓下載下傳的connector,然後在eclipse的根目錄裡,就像上邊的裝SVN一樣的裝這個插件,還是要建類似的目錄結構,名字可以随便起,然後把解壓的feature和plugins兩個檔案夾考進建的目錄裡,還要記着添加link檔案,也和上面的類似。 

6.重新開機eclipse,OK subeclipse可以用了。

~/nfc/libnfc-1.7.0-rc4/utils 調試:

LIBNFC_LOG_LEVEL=3 nfc-list            

繼續閱讀