Watch this video to learn how to install Eclipse Luna or any version of Eclipse on Ubuntu 14.04 LTS or any recent versions of Ubuntu.
INSTRUCTIONS:
----------------------
Download eclipse tar.gz file. Eg: eclipse-jee-luna-SR1a-linux-gtk.tar.gz
Extract the package in same place
open nautilus as root
gksu nautilus
copy eclipse from Downloads to /opt/ and rename the folder as eclipse-luna.
it will look like /opt/eclipse-luna
open gedit as root from terminal
gksu gedit
type the following and save to /usr/share/applications as eclipse-luna.desktop
[Desktop Entry]
Version=4.4.1
Name=Eclipse Luna Java EE
GenericName=IDE
Comment=Eclipse IDE for Java EE Developers
Exec=/opt/eclipse-luna/eclipse
Terminal=false
Icon=/opt/eclipse-luna/icon.xpm
Type=Application
Categories=Utility;Application;
Now Eclipse can be found in Dash by searching.
If you want an icon on the Launcher, just drag Eclipse from the Dash.
If you want to add an icon to desktop, copy the Eclipse file from usr/share/applications folder to the desktop.