Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed eclipse on ubuntu 10.04 by copying eclipse folder to /opt folder.

Now i would like to launch eclipse from gmrun dialog box by typing eclipse

How do i do that?

In windows to launch eclipse from run dialog box i copy the short cut of the application and paste it in windows/system32..Is there some thing like that in ubuntu?

share|improve this question

Add this line to your .bashrc: export PATH=/opt/eclipse:$PATH, assuming the binary eclipse is inside /opt/eclipse.

It might be /opt/eclipse/bin or similar, but you will have to check it out yourself.

After that, you should be able to run it by pressing Alt+F2 and entering eclipse.

share|improve this answer

Typing eclipse at the command line calls a shell script in /usr/bin/ which then launches Eclipse. It looks like there's a line in the script you can change to point to your Eclipse install directory: ECLIPSE=/usr/lib/eclipse/eclipse.

share|improve this answer

Create shortcut in /usr/bin or /usr/local/bin and it will work similarly as in Windows.

share|improve this answer
You should add more detail. "Add a shortcut" really means what invocation of ln -s ? – RobotHumans Aug 23 '12 at 16:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.