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.

This question already has an answer here:

I installed Android Development Tools (you just download it and run the executable file inside a folder). I want to pin the ADT to the launcher, but I don't know how to do that. I tried to drag the executable file, but it didn't work. I also tried to click "Lock to the launcher"(on the right click when it's running), but it also didn't work. Any ideas?

Edit1: If I create shortcut like in the article you claim answers my question. Can I install normal eclipse and set it in a way it's the same like ADT downloaded from android.com? I tried that as well, but some features are missing.

Edit2: When I try to run it, what I get is an error message saying There was an error launching the application

Edit3: This is what I typed

Desktop Entry]
Name=Eclipse
Type=Application Exec='/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse'
Terminal=false
Icon='/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm'
Comment=Eclipse
NoDisplay=false
Categories=Development;IDE
Name[en]=Eclipse.desktop

Edit4: Eclipse launched successfuly.

Edit5: I also tried without apostrophes, but I get the same error message as in Edit2.

share|improve this question

marked as duplicate by Takkat, Mitch Apr 19 '14 at 19:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
See askubuntu.com/questions/13758/… - you need to create a .desktop file for it. –  Takkat Apr 19 '14 at 18:54
    
Takkat, please remove the duplicate tag, because this IS NOT a duplicate! –  Dusan Milosevic Apr 19 '14 at 20:31
    
What's a typo?. –  Dusan Milosevic Apr 19 '14 at 21:22
1  
The message in your screenshot from your 2nd edit indicates an error in the .desktop file. Spot the error, remove it, and you will be able to run Eclipse from a .dektop file (which then can be dragged onto the laucher). –  Takkat Apr 19 '14 at 21:39
1  
Your terminal screenshot shows at least two errors... 1. line missing [, 3. line missing new line after "Application". Double check the paths are correct. Save the .desktop file in ~/.local/share/applications and make it permission "executable". –  Takkat Apr 20 '14 at 6:57

1 Answer 1

up vote 15 down vote accepted

You should create a Desktop Entry first: Go in terminal and write:

sudo nano /usr/share/applications/adt.desktop

and write inside of editor:

[Desktop Entry]
Name=ADT
Type=Application
Exec=/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse 
Terminal=false
Icon=/home/dusan/adt-bundle-linux-x86_64-20140321/eclipse/eclipse.xpm
Comment=Any comment
NoDisplay=false
Categories=Development;IDE
Name[en]=adt.desktop

Replace Icon and Exec with the path to Eclipse. Then press Ctrl+X followed by Y, then Enter.

Now you have desktop entry in Dashboard. Drag it to your launcher. May need to logout.

share|improve this answer
    
It's not working. Eclipse won't start. –  Dusan Milosevic Apr 19 '14 at 20:08
    
be sure you put the paths to your eclipse executable correctly. –  kostandinangjellari Apr 19 '14 at 20:11
    
I did. The same thing happens like I ran eclipse and clicked "Lock to Launcher". –  Dusan Milosevic Apr 19 '14 at 20:16
    
put a break behind Type=Application; Exec should be in newline –  kostandinangjellari Apr 19 '14 at 20:51
    
Worked for me!! –  Shervin Asgari May 15 at 9:13

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