Starting eclipse from unity launcher
Solution 1:
Normally, When you run Eclipse
from a downloaded version, it should create a correct .desktop
file in ~/.local/share/applications
on first run.
In this case, for some reason, some lines were messed up:
- The
Exec=
-line should simply show the path to your executable. - The
Name=
-line obviously went (terribly) wrong as well
How to fix
Just replace:
-
The line starting with
Exec=
by:Exec=/path/to/your/eclipse_executable
(most likely, looking at your
Path=
-line, it should be:Exec=/home/nakulkumar/Downloads/eclipse/eclipse
) -
The line starting with
Name=
by:Name=Java - Eclipse
As a comparison, this is the .desktop
file Eclipse created on my system:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Java - Eclipse
Icon=eclipse
Path=/home/jacob/eclipse
Exec=/home/jacob/eclipse/eclipse
StartupNotify=false
StartupWMClass=Eclipse
OnlyShowIn=Unity;
X-UnityGenerated=true