Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 comment

3 Answers

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
add comment

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
add comment

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 ? –  hbdgaf Aug 23 '12 at 16:24
add comment

Your Answer

 
discard

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.