! [](https://upload-images.jianshu.io/upload_images/24762785-67a797575d6a0e45.jpg?imageMogr2/auto-orient/strip%7CimageView 2/2/w/1240)

Eclipse is an IDE written in Java, Java cross-platform, portability is good, so Linux and Windows platform can be used.

Installation steps:

1 to install the JRE

Download JRE:java.sun.com/javase/down…

Create a directory

[root@localhost ~]# mkdir /usr/local/java

Download the RPM package jre-7u25-linux-i586. RPM to the /usr/local/java directory

Switch to root and install the JRE RPM package

[root@localhost java]# rpm -ivh jre-7u25-linux-i586.rpm

The installation directory will be under /usr/java

Then configure the environment variables

! [](https://upload-images.jianshu.io/upload_images/24762785-1ad260e660916f96.jpg?imageMogr2/auto-orient/strip%7CimageView 2/2/w/1240)

[root@localhost java]# vim PATH=$PATH: /usr/java/jre1.7.0_25/binjava_HOME = /usr/java/jre1.7.0_25CLASspath =/usr/java/jre1.7. 0_25/lib:.exportPATH JAVA_HOME CLASSPATH

Verify that the JRE is installed successfully

[root@localhost Java]# Java – versionJava version”1.7.0_25″Java(TM)SE Runtime Environment(build 1.7.0_25-b15)Java HotSpot(TM)Client VM(Build 23.25-B01, Mixed mode, Sharing)

2. Install Eclipse IDE for C/C++ Developers

Download Eclipse:www.eclipse.org/downloads/

After downloading it, unzip it

tar -zxvf eclipse-cpp-kepler-R-linux-gtk.tar.gz

cd eclipse

/eclipse # Start Eclipse

Matters needing attention:

Error found when compiling and running:

launch failed,binary not found

Solutions:

Project->Properties->C/C++Build->Settings->Binary Parsers

Check GNU Elf Parser and Elf Parser

Error:

Program “g++” not found in PATH

Solutions:

yum install gcc-objc++

And then change the Settings

Window

-> Preferences -> C/C++ -> Build -> Settings ->

Discovery -> CDT GCC Build in Complier Settings [Shared]

From: COMMAND−E−P− V −dD”{COMMAND} -e -p v-DD “COMMAND−E−P− V −dD”{INPUTS}”To: /usr/bin/command −E−P− V −dD”{COMMAND} -e -p v-DD “The COMMAND – E – P – v – dD” {INPUTS}”

Click here for more information, free open source projects and courses.

! [](https://upload-images.jianshu.io/upload_images/24762785-d5397ad20401603c.jpg?imageMogr2/auto-orient/strip%7CimageView 2/2/w/1240)