Installing Eclipse
- Download Eclipse from here;
- Extract it. You will end up having a folder named eclipse, copy it;
- Press CTRL + ALT + T to open Terminal;
- Type the command:
sudo nautilus
and then insert your password;
-
Browse to /opt/ and paste the extracted folder there.
Creating a shortcut
- Press CTRL + ALT + T to open Terminal;
- Type:
sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
sudo gedit /usr/share/applications/eclipse.desktop
- After these commands, gedit (ubuntu's default text editor) should have opened. Copy this and paste it there:
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
X-Desktop-File-Install-Version=0.22
- Save the text file and close gedit;
- This should have successfully created a shortcut. You may have to log off and back in for it to show up.
Great. This was really helpful for me. Thanks!
ReplyDeletegreat and it works as a charm.
ReplyDeletethanks a lot
I finished all these steps but the shortcut doesn't appear !!!
ReplyDeletequoting from above: "This should have successfully created a shortcut. You may have to log off and back in for it to show up."
Deleteif it still does not show up, review the required steps.. you probably skipped something
We can create as many desktop entry for eclipse various version.
ReplyDeleteFor eclipse luna
change the folder name to eclipse_luna which is extracted.
sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
And create eclipse_luna desktop entry in /usr/share/applications/
sudo touch eclipse_luna.desktop /usr/share/applications/
sudo gedit /usr/share/applications/eclipse_luna.desktop
and then change the file as per following.
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse_luna/eclipse
Terminal=false
Icon=/opt/eclipse_luna/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse_Luna
X-Desktop-File-Install-Version=0.22
Great. It works!! =D Thanks!!!
ReplyDeleteits helpfull but its long, does anyone know how to install via PPA,
ReplyDeleteGreat. Works fine and super clear explanation.
ReplyDeleteMany thanks...
I finished all steps but the eclipse is not shown in search. But when i look all my desktop icon in usr/share/applications/eclipse.desktop and open with right click error(There was an error launching the application) I googled it and find some java exec path issue. please help
ReplyDeleteThis deserves a Noble Prize Award.. Thank you for creating this tutorial..
ReplyDeleteYou rock sir.. \m/
Worked like a charm...thanks.
ReplyDeletethanks for giving an installation cmd.it's very useful for me
ReplyDelete
ReplyDeleteI tried with above settings to install Eclipse luna 4 on ubuntu but it didn't work.