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. 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: Here's the error that I get when I try to run it:

enter image description here

Edit3: Here's what I typed:

enter image description here

Edit4: This is the file that's launched successfully:

enter image description here

Edit5: I tried without apostrophes, but I get the same error message.

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
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
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 14 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]
Comment=Any comment

Replace Icon and Exec with where eclipse is.

then CTRL + X

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

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