几个月前我在Ubuntu机器上安装了eclipse。
所以,如果我输入命令
eclipse
加载版本3.8的Eclipse IDE。
但现在我已经下载了'eclipse mars'版本,将其解压缩并将其存在于文件夹位置
/home/rahul/Installers/Eclipse-Mars/eclipse
我还改变了路径中存在的文件“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 IDE,即3.8版本。
请告诉我如何解决?
首先尝试通过bellow命令获取现有eclipse的路径。
哪个日食
如果是/ usr / bin / eclipse
mv / usr / bin / eclipse /usr/bin/eclipse.old
然后
ln -s / home / rahul / Installers / Eclipse-Mars / eclipse / eclipse / usr / bin / eclipse
要么
EPATH =`哪个日食`; mv $ EPATH“$ EPATH.old”; ln -s / home / rahul / Installers / Eclipse-Mars / eclipse / eclipse $ EPATH