Today, I finally found a very good article about how to install eclipse conveniently under Ubuntu. that's great. let's share Ubuntu.
1. download jre, eclipse, cdt
Jre is a java Runtime Environment. eclipse needs to install jre before it can run. cdt is a plug-in for running c \ c ++ programs in eclipse.
1.1 Download jre
The URL is: java.sun.com. click java se, and the Red Line (for example)
Then, select download jre
Then, as shown in the red dash section
Click jre-6u18-linux-i586.bin"
You can get the jre-6u18-i586.bin file
1.2 Download eclipse
URL: www.eclipse.org. select downloads, as shown in red.
Select "eclipse ide for java ee developers (188 MB )"
Click [China] Amazon AWS (http )"
You can obtain the eclipse-jee-galileo-sr1-linux-gtk.tar.gz compressed package.
1.3 Download cdt
URL: www.eclipse.org/cdt/, click "Downloads"
Select the following red dashes
Click "6.0.1 (September, 2009 )"
Click [China] Amazon AWS (http )"
You can get the cdt-master-6.0.1.zip package.
2. Installation
(1) install eclipse and open the terminal, as shown in
Go to the directory where you want to "install software", as shown below:
Then decompress the eclipse-jee-galileo-sr1-linux-gtk.tar.gz package.
The command is: sudo tar-zxvf eclipse-jee-galileo-SR1-linux-gtk.tar.gz
Get: eclipse folder
(2) install jre
On the terminal, enter: sh jre-6u18-i586.bin, press space all the time, then enter 'y', press enter to start jre installation.
After installation, a jre1.6.0 _ 18 folder is generated and copied to the eclipse folder. Enter sudo cp-r jre1.6.0 _ 18 eclipse/jre on the terminal
Up to now, you can run the eclipse software by opening the eclipse folder and double-clicking the eclipse icon.
(3) install cdt
Enter: unzip cdt-master-6.0.1.zip-d cdtin the terminal, you can decompress cdt-master-6.0.1.zip and its content is stored in the cdt folder.
Enter sudo cp-r cdt/plugins/eclipse/to copy the content of plugins under cdt to the plugins folder under eclipse.
Finally, enter sudo cp-r cdt/features/eclipse/to copy the content of features under cdt to the features folder under eclipse.
The installation has been completed.
3. run the c ++ program
Before running the c ++ program, enter sudo apt-get install build-essential on the terminal. this command indicates installing the c ++ compiler and debugging software.
Open eclipse and create a project, as shown in
Select "c ++ project" and click "next"
So far, a helloWorld. cpp program has been running.