在Ubuntu 中安装eclipse, eclipse 文件已经下载好!

时间:2022-10-01 04:59:22

If you've downloaded Eclipse from their official website, follow these steps for the installation.

  1. Extract the eclipse.XX.YY.tar.gz using
  2. tar -zxvf eclipse.XX.YY.tar.gz
  3. Become root.
  4. sudo -i
  5. Copy the extracted folder to /opt
  6. cp -r eclipse.XX.YY /opt
  7. Create a desktop file and install it:
  8. gedit eclipse.desktop

    and copy the following to the eclipse.desktop file.

    [Desktop Entry]

    Name=Eclipse

    Type=Application

    Exec=eclipse

    Terminal=false

    Icon=eclipse

    Comment=Integrated Development Environment

    NoDisplay=false

    Categories=Development;IDE;

    Name[en]=Eclipse

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

    desktop-file-install eclipse.desktop

  9. Create a symlink in /usr/local/bin using
  10. cd /usr/local/bin
  11. ln -s /opt/eclipse/eclipse
  12. For eclipse icon to be displayed in dash, eclipse icon can be added as
  13. cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm

That's it.