1.安裝前eclipse需要java,
yum -y install java
查看版本
java -version
2.下載eclipse IDE http://www.eclipse.org/downloads/eclipse-packages/
版本為eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz
解壓即可運行eclipse即可使用
3.創建Gnome快捷啟動方式
一個桌面快捷方式是由內含該APP元信息(例如,app的名字,啟動命令或者圖標位置等)的.desktop文件所表示的。桌面快捷方式文件放置於/usr/share/applications或者~/.local/share/applications處。
/usr/share是對所有用戶,~./.local/share是只用於本用戶
我選擇只用於本用戶
在~/.local/share/applications 創建eclipse.desktop
vim eclipse.desktop
文件內容
1 [Desktop Entry] 2 Encoding=UTF-8 3 Name=Eclipse C++ #name of an app. 4 Comment=Eclipse Oxygen #comment which appears as a tooltip. 5 Exec=/home/用戶/eclipse/eclipse #command used to launch an app. eclipse所在文件位置 6 Icon=/home/用戶/eclipse/icon.xpm #location of icon file. 7 Categories=Application;Development;Java;IDE #categories in which this app should be listed. 8 Version=2.0 #version of an app. 9 Type=Application #type 10 Terminal=0 #whether an app requires to be run in a terminal
保存完就可以看到圖標