Install eclipse in Ubuntu 12.04
Method 1: (the disadvantage is that a large number of programs such as openjdk cannot be removed during installation. The advantage is that the installation is simple)
$ Sudo apt-Get install eclipse
Method 2: (the installation content is refreshing, but the disadvantage is that the configuration is troublesome)
1. Install JDK. See install JDK 7 in Ubuntu 12.04.
2. Download eclipse
Download the software package from http://www.eclipse.org/downloads/index-demo.php, such as: Eclipse IDE for C/C ++ developers
3. decompress 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 content is 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. Localization
Download the corresponding Chinese package from http://www.eclipse.org/babel/downloads.php.
1) Select the latest Babel Language Pack zips and update sites-r0.9.1 indigo.
2) Select the BabelLanguagePack-eclipse-zh_3.7.0.v20111128043401.zip under language: Chinese (simplified)
3) decompress 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