Link: http://donovanbrown.com/post/Adding-Eclipse-to-Launcher-on-Ubuntu-1604
- Open a text editor
- Copy and paste the following text into the editor:
[Desktop Entry]
Version = 1.0
Name=Eclipse
Comment=Used to run C++
Terminal=false
Type=Application
Categories=Application
Exec=/home/{username}/eclipse/cpp-2019-03/eclipse/eclipse
Icon=/home/{username}/eclipse/cpp-2019-03/eclipse/icon.xpm
- Update any paths if you extracted Eclipse to a different location
- Save the file as eclipse.desktop in /home/{username}/.local/share/applications/
- Reboot your machine
- Search for Eclipse
- Drag and drop the Eclipse icon to the launcher