几个月前,我在我的Ubuntu机器上安装了eclipse。
所以如果我输入命令
eclipse版本3.8加载的Eclipse。
但是现在我已经下载了“eclipse mars”版本,并将其解压缩到文件夹位置。
/home/rahul/Installers/Eclipse-Mars/eclipse我还更改了path中文件"eclipse.desktop“的内容。
/usr/share/applications至
eclipse.desktop
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/home/rahul/Installers/Eclipse-Mars/eclipse/icon.xpm
Exec=/home/rahul/Installers/Eclipse-Mars/eclipse/eclipse
Terminal=false
Categories=Development;IDE;Java;但是,如果我输入命令" Eclipse“,它仍然会加载旧的Eclipse,即3.8版本。
请告诉我怎么修?
发布于 2016-09-13 11:49:43
首先,尝试通过下面的命令获取现有eclipse的路径。
日食
如果是/usr/bin/eclipse
mv /usr/bin/eclipse /usr/bin/eclipse.old
然后
/home/rahul/Installers/Eclipse-Mars/eclipse/eclipse /usr/bin/ -s
或
/home/rahul/Installers/Eclipse-Mars/eclipse/eclipse EPATH=
which eclipse;mv $EPATH "$EPATH.old";-s $EPATH
https://stackoverflow.com/questions/39467294
复制相似问题