ubuntu下eclipse啟動配置

2021-06-22 19:37:08 字數 869 閱讀 1838

裝eclipse之前,請確定你安裝了jdk。

然後在該檔案中新增以下內容:

#!/bin/sh

export eclipse_home="/home/opt/eclipse"

#使root使用者的環境變數生效

source /etc/profile

$eclipse_home/eclipse $*

3.讓修改該指令碼的許可權,讓它變成可執行,執行下面的命令:

sudo chmod +x /usr/bin/eclipse

可以通過終端執行eclipse來執行

最好執行sudo eclipse讓eclipse獲得許可權來對tomcat等進行配置 

4.在桌面或者gnome選單中新增eclipse啟**標

(1)在桌面或者啟動面板上新增圖示:

在桌面(右鍵單擊桌面->建立啟動器)或面板(右鍵單擊面板->新增到面板 ->定製應用程式啟動器)上建立乙個新的啟動器,然後新增下列資料:

名稱:eclipse platform

命令:eclipse

圖示: /home/tiger/eclipse/icon.xpm

或者sudo gedit

然後在檔案中新增下列內容:

[desktop entry]

encoding=utf-8

name=eclipse platform

comment=eclipse ide

exec=eclipse

icon=/home/tiger/eclipse/icon.xpm

terminal=false

startupnotify=true

儲存檔案。完成整個安裝過程。可以雙擊桌面eclipse的圖示來執行eclipse

ubuntu下Eclipse下新增GBK編碼

把windows下的工程匯入到了linux下eclipse中,由於以前的工程 都是gbk編碼的 windows下的eclipse 缺省會去讀取系統的編碼,所以widnwos下的eclipse的編碼為gbk 而ubuntu預設是不支援gbk編碼的。所以,首先我們要先讓 ubuntu支援gbk,方法如下...

ubuntu下Eclipse工程除錯

配置記錄 1.編譯c 工程時,提示 故在project properties c c build environment修改path環境變數 增加.armv7 codesourcery arm none linux gnueabi bin,該path下包含g home kevinxiao share...

Ubuntu下Eclipse的安裝

ubuntu下eclipse的安裝 gef3.1 ve1.1.0 2 先說一種比較省事的做法 再執行如下的命令 sudo tar xvfz eclipse sdk 3.1.2 linux gtk.tar.gz c opt sudo unzip d opt emf sdo runtime 2.1.0....