Linux中的'eclipse'cmd如何映射到eclipse安装?(How does 'eclipse' cmd in Linux map to an ecl

编程入门 行业动态 更新时间:2024-10-26 03:26:52
Linux中的'eclipse'cmd如何映射到eclipse安装?(How does 'eclipse' cmd in Linux map to an eclipse installation?)

我在Ubuntu上,我正在尝试从eclipse 3.5升级到eclipse 3.7。 我想保留3.5版本的eclipse,只需使用3.7。

当我在命令行输入“eclipse”时,会启动旧版本的eclipse。 “eclipse”命令似乎没有在我的PATH中定义。 Linux如何创建从此命令到eclipse安装的映射? 我想改变映射,以便它启动3.7。

wsl:~$ cat ~/.bashrc | egrep 'eclpse|ECLIPSE|Eclipse'

wsl:~$ echo $PATH | egrep 'eclipse|ECLIPSE|Eclipse'

wsl:~$

I am on Ubuntu and I am trying to upgrade from eclipse 3.5 to eclipse 3.7. I want to preserve the 3.5 version of eclipse and just work out of 3.7.

When I type "eclipse" on the command line, the old version of eclipse is launched. The "eclipse" command doesn't appear to be defined in my PATH. How does Linux create a mapping from this command to the eclipse installation? I would like to change the mapping so that it launches 3.7 instead.

wsl:~$ cat ~/.bashrc | egrep 'eclpse|ECLIPSE|Eclipse'

wsl:~$ echo $PATH | egrep 'eclipse|ECLIPSE|Eclipse'

wsl:~$

最满意答案

使用which eclipse来显示可执行文件的完整路径; 该目录必须在您的PATH 。

Use which eclipse to display the full path of the executable; that directory must be in your PATH.

更多推荐

本文发布于:2023-07-26 03:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1270694.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:eclipse   Linux   cmd   installation   map

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!