cfpperche
2/20/2015 - 1:03 AM

gistfile1.txt

Step 1: Install Java (JRE/JDK)

$ sudo apt-get install openjdk-7-jre
$ sudo apt-get install openjdk-7-jdk


Step 2: Download Eclipse IDE


Step 3: Move the downloaded package to /opt directory

$ sudo mv Downloads/eclipse-* /opt/


Step 4: Extract Eclipse

Run the following commands to extract Eclipse:

$ cd /opt/
$ sudo tar -xvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz


Step 5: Delete Eclipse tar.gz file

$ sudo rm eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz


Step 6: Create a new Desktop File

$ sudo gedit /usr/share/applications/eclipse.desktop
Paste the following and save:

[Desktop Entry]
Name=Eclipse 
Type=Application
Exec=env UBUNTU_MENUPROXY= /opt/eclipse/eclipse 
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=eclipse.desktop
X-Desktop-File-Install-Version=0.22


Step 7: Add Eclipse to Desktop

Run the following command to automatically install it in Unity:

$ sudo desktop-file-install /usr/share/applications/eclipse.desktop
Create a symlink:

$ cd /usr/local/bin/
$ sudo ln -s /opt/eclipse/eclipse
To display eclipse in the search bar:

$ sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm


Now you are ready to launch and use Eclipse!