Method One: (Disadvantage is the installation of additional OPENJDK and other large number of programs and can not be removed, the advantage is simple installation)
$ sudo apt-get install eclipse
Method Two : (The advantage is the installation content is refreshing, the disadvantage is the configuration trouble)
1. Install JDK, refer to Ubuntu 12.04 to install JDK 7
2. Download Eclipse
Download the appropriate version from http://www.eclipse.org/downloads/index-developer.php, such as: Eclipse IDE for C + + developers
3. Unzip the file
$ sudo mv eclipse-cpp-juno-m7-linux-gtk.tar.gz/usr/lib/
$ cd/usr/lib/
$ sudo tar-zxvf eclipse-cpp-juno-m7-linux-gtk.tar.gz
$ sudo rm./eclipse-cpp-juno-m7-linux-gtk.tar.gz
4. Create a startup shortcut
$ sudo gedit/usr/share/applications/eclipse.desktop
The contents are as follows:
[Desktop Entry]
Type=application
Name=eclipse
Comment=eclipse Integrated Development environment
icon=/usr/lib/eclipse/icon.xpm
Exec=/usr/lib/eclipse/eclipse
Terminal=false
Categories=development;ide; Java;
5. Chinese
Download the corresponding version of the Chinese package from http://www.eclipse.org/babel/downloads.php.
1) Select Latest Version Babel Language Pack zips and Update sites-r0.9.1 under Indigo
2) Select the Babellanguagepack-eclipse-zh_3.7.0.v20111128043401.zip under Language:chinese (Simplified)
3) Unzip the file
$ sudo unzip Babellanguagepack-eclipse-zh_3.7.0.v20111128043401.zip
$ sudo mv./eclipse/plugins/*/usr/lib/eclipse/plugins/
$ sudo mv./eclipse/features/*/usr/lib/eclipse/features/
$ sudo rm-r eclipse
Install Eclipse under Ubuntu 12.04