user1325378
user1325378

Reputation: 89

How does 'eclipse' cmd in Linux map to an eclipse installation?

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:~$

Upvotes: 1

Views: 132

Answers (2)

Nathan Boyd
Nathan Boyd

Reputation: 589

check your ".bashrc" for "$ECLIPSE_HOME/"

Upvotes: 1

andri
andri

Reputation: 11292

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

Upvotes: 3

Related Questions