1. Download Eclipse downloads the appropriate version from http://www.eclipse.org/downloads/index-developer.php, such as: Eclipse IDE for C + + developers
It is important to note that I downloaded the eclipse-java-kepler-sr2-linux-gtk-x86_64 at the beginning. tar.gz, but this version does not support web development, so I downloaded the JEE version of the, eclipse-jee-kepler-sr2-linux-gtk-x86_64.tar.gz, the installation process is the same.
2. Unzip the file
$ sudo mv eclipse-java-kepler-sr2-linux-gtk-x86_64.tar.gz/opt//Move the installation package to the installation directory
$ cd/opt//Enter the installation directory
$ sudo tar-zxvf eclipse-java-kepler-sr2-linux-gtk-x86_64.tar.gz//Unzip the installation package
$ sudo rm./eclipse-java-kepler-sr2-linux-gtk-x86_64.tar.gz//Delete installation package
3. Create a shortcut
$ sudo gedit/usr/share/applications/eclipse.desktop
Ubuntu 12.04 uses the Unity interface, which has one more launcher bar on the left side of the desktop. We can use the software we use in the launcher bar to put an icon, to enable fast start. Each icon in the Launcher bar actually corresponds to a file in the/usr/share/applications directory.
In order to create a launch bar icon for Eclipse, we can create the file Eclipse.desktop in the/usr/share/applications directory (the filename can be arbitrary, but the file name suffix must be. Desktop), and then copy the following content:
[Desktop Entry]
Type=application
Name=eclipse
Comment=eclipse Integrated Development environment
icon=/opt/eclipse/icon.xpm
Exec=/opt/eclipse/eclipse
Terminal=false
Categories=development;ide; Java;
3, after decompression is a folder called Eclipse.
/opt/eclipse/eclipse//Start eclipse
Install the Hadoop family-install eclipse