如何在Ubuntu中将默认的eclipse IDE更改为新版IDE?

问题描述 投票:0回答:1

几个月前我在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版本。

请告诉我如何解决?

java linux eclipse ubuntu-16.04
1个回答
0
投票

首先尝试通过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

© www.soinside.com 2019 - 2024. All rights reserved.