a shortcut to run Eclipse on Ubuntu Unity and to register Eclipse with the left Launcher
In your terminal,
cd ~/.local/share/applications
wget https://gist.github.com/raw/2922285/eclipse.desktop
chmod u+x eclipse.desktop
vim eclipse.desktop
# edit eclipse.desktop to replace "<ECLIPSE_DIR>" with your eclipse directory
- In your terminal,
xdg-open ~/.local/share/applications
to open the directory with the file browser - Drag and drop the
eclipse.desktop
on Unity Launcher
@Maliksajad004, Sometimes it does not work straight.
Below is how you can fix this problem
$gsettings get org.gnome.shell favorite-apps
you will see something like -
['org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop', 'google-chrome.desktop']
Now add eclipse.desktop in this your favorite app using :
$gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop', 'google-chrome.desktop','eclipse.desktop']"
You will see the eclipse icon on the favorite bar and when you click on it, It should work.