I downloaded eclipse and extracted it to /opt
.
My question is how can I make it run from terminal as like other programs like javac, java. I did with update-alternatives
as follows:
sudo update-alternatives --install "/usr/bin/eclipse" "eclipse" "/opt/eclipse/eclipse" 1
I didn't get any error. I traversed and saw /usr/bin/eclipse
was there, So I did:
sudo eclipse
and I got:
sudo: eclipse: command not found
- Is this possible to execute command
eclipse
and my eclipse would start? - How can I make my User Program as one of the executable programs from terminal?
- Am I using
update-alternatives
for correct purpose? - Any other solution?