前提是安装好jdk,这里不做介绍
- 下载并eclipse mars至usr/local下
cd /usr/local
tar -zxvf eclipse-jee-mars-2-linux-gtk-x86_64.tar -C /eclipse
- 在usr/share/applications下新建一个以“.desktop”结尾的文件
cd /usr/share/applications
vim eclipse.desktop
- 将以下内容写至该文件中
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=eclipse
Type=Application
Terminal=false
Name[en_US]=eclipse
Exec=/usr/local/eclipse/eclipse
Comment[en_US]=Eclipse Mars.2
Comment=Eclipse Mars.2
GenericName[en_US]=
Icon=/usr/local/eclipse/icon.xpm
注意“Exec”填写成 Eclipse 的文件的路径即可。
将usr/share/applications下生成的eclipse快捷方式复制到桌面即可。
本文详细介绍如何在Linux环境下安装Eclipse Mars版本,包括下载压缩包、解压至指定目录、创建桌面快捷方式等步骤。
1027

被折叠的 条评论
为什么被折叠?



