在桌面用vi 建立eclipse.desktop文件,並賦予權限 sudo chmod u+x /home/liujl/Desktop/eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platfrom
Comment=Eclipse IDE
Exec=/home/liujl/installer/eclipse/eclipse
Icon=/home/liujl/installer/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
如果雙擊圖標無法啟動,是啟動JRE沒有指定問題,解決辦法請看 http://www.cnblogs.com/qq-757617012/p/5654431.html