I can't launch eclipse from either terminal or gmrun but I can do so using Applications -> Programming -> Eclipse.
Here are the screenshots:
1) Using Gmrun
: I can see that gmrun
is recognizing the eclipse
command but when I enter it, nothing happens.
2) Using Terminal: when I type eclipse
, I get the following message:
Thanks!
Ubuntu has its own directories from which it will check for applications (like
/usr/bin
). So If you just downloaded eclipse to/opt
then of course it won't be recognized. If you want it to be recognized, you have two options, either install from Ubuntu standard repos (with disadvantage missing latest version) or install your eclipse on those directories / symlink it (both unrecommended).BTW why not
cd /opt/eclipse
and just run./eclipse
?Do the following steps to fix it. Assume you extracted
eclipse
in/opt/eclipse
. Youreclipse
executable's path is/opt/eclipse/eclipse
Fix permission
Make a link of
eclipse
(executable)Again fix the permission
Check in terminal to ensure that system detects eclipse which eclipse
Now you can run eclipse by typing eclipse in
terminal
or search ingmrun
(ATL+F2)Or maybe you could try to change your
$PATH
environment variable in the.profile
file in your home directory? Like adding a lineexport PATH=$PATH:/opt/eclipse
to the file (at or near the end of the file).You can do the following:
open
~/.bashrc
with your favourite editor and add the following lines to the end of the file:Close and open the terminal.
This is what I did in Unity and it worked for me. I am not quite sure if it will work on the Gnome environment.