安裝JDK
下載後解壓到/opt 目錄下
tar -zxvf eclipse-Java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt
/opt 表示解壓到/opt目錄下,加了-C,後面要添加路徑
ln -s /opt/eclipse/eclipse /usr/bin/eclipse
eclipse與/usr之間有空格
vim /usr/share/applications/eclipse.desktop
[Desktop Entry]Encoding=UTF-8Name=Eclipse 4.4.1Comment=Eclipse LunaExec=/usr/bin/eclipseIcon=/opt/eclipse/icon.xpmCategories=Application;Development;Java;IDEVersion=1.0Type=ApplicationTerminal=0
http://www.bkjia.com/Linuxjc/1191972.html TechArticle