The steps are as follows:
1. Mac OS X itself is already installed JDK, so it is very simple to build the Java eclipse environment, only need to download the appropriate eclipse for the system, first look at the system is several (click the Apple Logo in the upper left corner of the Mac screen, select "About this computer", in the pop-up square window click " More info ... "button, then click on the" System report ... "button, and in the" Software "section you can see whether your Mac OS X system is turning on 64-bit arithmetic. )
2. Download Eclipse (required for both Java and C + +)http://www.eclipse.org/downloads/
3. Install the GCC compiler XCode (ready for Eclipse Java integrated C + +).
The way to determine if the GCC compiler is installed in the system is to open a terminal window (in the Utilities folder), enter the command g++, and no output commands not found, if installed then output not input files. Xcode is available on the Mac computer's random installation CD, the latest version can be downloaded on the Apple website (http://developer.apple.com/technologies/xcode.html), but you need to register an apple Developer your account number before you can download it. Follow the setup procedure to install it. After installation, open the xcode,preferences inside there is a downloads inside there is a components option, there is a command line tools installed on it
4. Eclipse consolidates Java and C/C + +
Unzip the two version of Eclipse that you just downloaded (note in a different place, prevent it from being overwritten by the same file name), and then copy all the contents of the plugins folder inside the C + + version of Eclipse and paste it into the Java version of Eclipse Inside the plugins folder below ( Note: Can not overwrite the existing files or folders ), OK tools are ready, now left to test!!!
5. Create a Java project first
6. Create a C + + project
7. Compile and run the program ( You must compile project-to- Build project first )
Configuring the Eclipse java/c++ Development environment under MAC systems