I recently used some java environments and tried to download them ~~~ The eclipse icon is pretty.
Transferred from Baidu Library ~ \ (Too many rows )/~ La la
... Some steps are not required, such as JDK installation. The previous JDK installation on my blog is reproduced ~~~
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.