ubuntu install eclipse (from:http://askubuntu.com/questions/26632/how-to-install-eclipse)

来源:互联网 发布:广东省大数据产业园 编辑:程序博客网 时间:2024/05/03 17:17

I use ubuntu 12.10 and I downloaded eclipse-java-juno-SR1-linux-gtk.tar.gz.

1, tar 'eclipse-java-juno-SR1-linux-gtk.tar.gz' to /opt.

sudo tar zxvf  eclipse-java-juno-SR1-linux-gtk.tar.gz -C /opt

2 Create a desktop file and install it:

  1. gedit eclipse.desktop

    and copy the following to the eclipse.desktop file.

    [Desktop Entry]Name=Eclipse Type=ApplicationExec=eclipseTerminal=falseIcon=eclipseComment=Integrated Development EnvironmentNoDisplay=falseCategories=Development;IDE;Name[en]=Eclipse

    then execute the following command to automatically install it in the unity:

    desktop-file-install eclipse.desktop
3,
  1. Create a symlink in /usr/local/bin using

    cd /usr/local/binln -s /opt/eclipse/eclipse
  2. For eclipse icon to be displayed in dash, eclipse icon can be added as

    cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm
from:http://askubuntu.com/questions/26632/how-to-install-eclipse

原创粉丝点击