Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. Eclipse, is a modern IDE, that is free. You can install Eclipse for C/C programming. You may want to check out more software for Mac, such as Eclipse Indigo, Yatta Eclipse Launcher or eclipse-php, which might be related to Eclipse C. Download Eclipse C. Latest update: Jun 07, 2019. If you don't see Applications, then open a new window for Applications (from the Finder, command-shift-A), and drag the eclipse folder into Applications. Open your Applications folder, and then open the eclipse folder. You'll see an item named Eclipse; if you like, drag its icon into the dock so that you'll be able to launch Eclipse easily.
- Download C/C Compiler for Apple Mac OS X Download the latest available Eclipse Compiler from eclipse.org/downloads/ for your OS X. Go to eclipse.org/downloads/ and select Operating System type from the drop down option located in the right top side (as shown below in the image).
- Link to How to install Java JDK on Mac OS X This Video tells you how to download Eclipse IDE for Mac OS X. In this tutorial, we.
Package Description
The essential tools for any Java developer, including a Java IDE, a CVS client, Git client, XML Editor, Mylyn, Maven integration and WindowBuilder
This package includes:
- Eclipse Git Team Provider
- Eclipse Java Development Tools
- Maven Integration for Eclipse
- Mylyn Task List
- Code Recommenders Tools for Java Developers
- WindowBuilder Core
- Eclipse XML Editors and Tools
- org.eclipse.cvs
- org.eclipse.egit
- org.eclipse.egit.import
- org.eclipse.egit.mylyn
- org.eclipse.epp.package.common.feature
- org.eclipse.equinox.p2.user.ui
- org.eclipse.help
- org.eclipse.jdt
- org.eclipse.jgit
- org.eclipse.m2e.feature
- org.eclipse.m2e.logback.feature
- org.eclipse.mylyn.bugzilla_feature
- org.eclipse.mylyn.context_feature
- org.eclipse.mylyn.cvs
- org.eclipse.mylyn_feature
- org.eclipse.mylyn.git
- org.eclipse.mylyn.hudson
- org.eclipse.mylyn.ide_feature
- org.eclipse.mylyn.java_feature
- org.eclipse.mylyn.wikitext_feature
- org.eclipse.platform
- org.eclipse.rcp
- org.eclipse.recommenders.rcp.feature
- org.eclipse.wb.core.feature
- org.eclipse.wb.core.ui.feature
- org.eclipse.wb.layout.group.feature
- org.eclipse.wb.swing.feature
- org.eclipse.wst.xml_ui.feature
Maintained by: Eclipse Mylyn Project
Windows x86-64
macOS 32-bit
macOS x86-64
Linux 32-bit
Linux x86-64
Windows 64-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 32-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 64-bit: MD5 - SHA1 - SHA512
Linux 32-bit: MD5 - SHA1 - SHA512
Linux 64-bit: MD5 - SHA1 - SHA512
Bugzilla
Bug ID | Title | Status |
516739 | Add WindowBuilder to Java package again | NEW |
513809 | [wiring] HttpComponents wiring issue | NEW |
509799 | Symantec reports a Trojan SONAR.AM.C!g24 in eclipse | NEW |
508091 | Duplicate options in Eclipse.ini | NEW |
521514 | Add 'Eclipse News' RSS feed to Java Package | NEW |
522649 | News feed plugin not installed on upgrade installs | NEW |
536469 | Use png with transparent icon in the about dialog of Java EPP (and others if applicable) | NEW |
530698 | Using weka api | NEW |
526611 | win64 version missing | NEW |
498457 | FileNotFoundException : org.eclipse.ui_3.108.0.v20160518-1929.jar | NEW |
489296 | Improve out-of-box experience for non-english locales | NEW |
386806 | New Eclipse Icon not used by Eclipse 4.2 on Windows 7 | NEW |
374170 | bugs when updating software | NEW |
364551 | setup automated tests for Java EPP package | NEW |
414381 | Failed to load the JNI shared library 'C:ogramFilesJavajre6binclientjvm.dll' | NEW |
458646 | Problème démarrage Eclipse | NEW |
355002 | EPP packages need styling | NEW |
473585 | Help system broken after updating from Luna to Mars | NEW |
487713 | FileNotFoundException: introData.xml | NEW |
382232 | Add 'EGit Import' to EPP package with EGit | ASSIGNED |
487722 | Dead link for 'Remote Help': Topic not found | REOPENED |
Bugs listed in italics indicate the bug has been moved to another project.
Eclipse For C Mac Os X 10.10
Bug ID | Title | Status |
382804 | Ctrl+C, Ctrl+V shortcuts don't work while editing Android XML | RESOLVED |
492163 | Add Maven to java package | RESOLVED |
383193 | Taskbar icon doesn't show Android build progress | RESOLVED |
490044 | [Welcome] Adopt Solstice theme for Java package | RESOLVED |
386686 | the Mobile package should include the Mylyn Bugzilla connector | RESOLVED |
365594 | add code recommenders to java package | RESOLVED |
358692 | Eclipse java package crash in Ubuntu 11.0.4 | RESOLVED |
356126 | fix Mylyn repository URLs in EPP packages for Indigo | RESOLVED |
356349 | update Mylyn URLs for Juno | RESOLVED |
357020 | add Mylyn Hudson/Jenkins connector to Java package | RESOLVED |
357332 | Annotations not shown on overview ruler | RESOLVED |
389113 | Unable to Launch Eclipse after download and setup: 'The Eclipse executable launcher was unable to locate its companion shared library.' | RESOLVED |
406246 | zip compression error | RESOLVED |
468598 | Mars RC1 Mac packages are damaged | RESOLVED |
535504 | Open file feature broken in Photon RC2 EPP packages | RESOLVED |
474204 | Include Buildship as part of Java package | RESOLVED |
534617 | [Photon] [java] Add Tip of the Day to the Java Package | RESOLVED |
528429 | m2e to download sources by default | RESOLVED |
194805 | add Error Log view to Java EPP distribution | RESOLVED |
432716 | Consider org.eclipse.recommenders.mylyn.rcp.feature for inclusion into Java package | RESOLVED |
483914 | bug | RESOLVED |
436206 | Re-enable Marketplace Client in Java Package | RESOLVED |
481475 | Scroll lock button being disabled | RESOLVED |
350079 | EGit should be by included in Java package | RESOLVED |
355058 | update repository locations for Juno | RESOLVED |
275767 | [Galileo M7] FileNotFoundException when updating Mylyn | RESOLVED |
275719 | [Galileo M7] packages do not have dropins folder | RESOLVED |
279203 | Add and enable Mylyn update site by default | RESOLVED |
281448 | [update] manager talking to update sites not available | RESOLVED |
549138 | Mylyn cannot be removed from Java IDE package | RESOLVED |
275558 | [Galileo M7] welcome view is not displayed on first startup | RESOLVED |
275523 | [Galileo M7] features appear twice in the about dialog | RESOLVED |
246466 | Missing/extra update sites when installing in either C:program file or C: | RESOLVED |
248976 | 'IDE for Java Developers' package is too restrictive by specifying Java 1.5 as required | RESOLVED |
275520 | [Galileo M7] package does not have any update sites | RESOLVED |
275521 | Improve branding for Galileo java package | RESOLVED |
297341 | EPP web page 'Download Milestone' link points to old builds | RESOLVED |
287566 | error on update after clean install | RESOLVED |
341705 | I tried to load the eclipse environment in Win Vista OS and got problems restoring workbench... | RESOLVED |
343869 | Add WindowBuilder Core and Swing to the Java package | RESOLVED |
346703 | Inclusion of m2e marketplace on help menu causing confusion | RESOLVED |
348157 | intrusive 'preview?' dialog on startup, from WindowBuilder | RESOLVED |
340312 | Indigo Java package logs lots of output | RESOLVED |
334180 | package contains duplicate (and modified?) bundles | RESOLVED |
313818 | Bugzilla connector does not load on Java 1.5 due to missing java.xml.bind bundle | RESOLVED |
306817 | Cannot update from M5 to Eclipse 3.6 M6 | RESOLVED |
311613 | java IDE / m6 / linux has an EclispeCon splash screen? | RESOLVED |
507104 | Include EclEmma in Java Package | RESOLVED |
507515 | Issue encountered when updating and reinstalling ABAP Development tools on NEON version. | CLOSED |
532067 | Open Bugs | CLOSED |
530726 | Mac OS X(Cocoa)64位下载连接无效 | CLOSED |
515622 | Eclipse will not run | CLOSED |
526343 | Constantly returning error message when opening the program | CLOSED |
501518 | Exception while updating external folders | CLOSED |
521654 | Getting error while starting Apache server | CLOSED |
529170 | MacOs didnt open the program | CLOSED |
548444 | The Java GUI is too big | CLOSED |
497204 | resource in project, but error says not open | CLOSED |
547604 | Can't Install software | CLOSED |
548562 | I am not able to update because of unfound repositories. | CLOSED |
550404 | sgfghg | CLOSED |
551635 | I can't run eclipse without having a bug on it. | CLOSED |
543464 | 2018-12 Installation Error | CLOSED |
543054 | Eclipse crashing while looking at files | CLOSED |
540168 | java 11 | CLOSED |
539041 | Unable to Install | CLOSED |
541760 | Missing Java Developer links for 2018-12 M3 | CLOSED |
542080 | Problems occurred when invoking code from plug-in: 'org.eclipse.ui.views.properties.tabbed'. | CLOSED |
543011 | java.io.FileWriter, the File cannot be deleted | CLOSED |
534760 | Simple compilation fails in Eclipse Oxygen.3a | CLOSED |
457081 | Add Error Reporting to Java Package | CLOSED |
435919 | Add 'Eclipse Code Recommenders' to 'This package includes' list | CLOSED |
435449 | Add org.eclipse.recommenders.snipmatch.rcp.feature to java-package | CLOSED |
436109 | update java package maintainer information | CLOSED |
455363 | Allow users to uninstall features from a package | CLOSED |
461540 | Unarchiving error | CLOSED |
414385 | the eclipsec executable launcher was unable to locate its companion shared library | CLOSED |
384532 | The Eclipse executable launcher was unable to locate its companion shared library | CLOSED |
330226 | Inclusion of m2e | CLOSED |
304968 | LinkageError when trying to use Eclipse to run (PDE) Ant scripts | CLOSED |
349028 | fix provider name for org.eclipse.wb.discovery.* | CLOSED |
353613 | Add EGit 1.1 to java-package | CLOSED |
381216 | Zip file for Java IDE RC1 package requires a password? | CLOSED |
464220 | Bug | CLOSED |
470912 | p2 can't find epp repo for Mars release | CLOSED |
482370 | thanks | CLOSED |
482285 | Mars.1 splash screen does not show progress bar after using console | CLOSED |
484535 | An error removing AppEngine from the project | CLOSED |
494695 | Didn't update from old version | CLOSED |
495806 | Suboptimal 'Visit' link on About Eclipse Features page | CLOSED |
480756 | Switch to root level features to allow users to remove unwanted features | CLOSED |
478619 | Webapp | CLOSED |
476546 | Eclipse Mars.1 RC2 for Java Developers includes CVS cheat sheets but no CVS support | CLOSED |
476553 | Installed Code Recommenders Snipmatch and Mylyn Integration features do not *show* under Installation Details | CLOSED |
477195 | Maintainer/tester information outdated | CLOSED |
477572 | p | CLOSED |
497192 | Eclipse Mars does not open in Windows 10 Pro | CLOSED |
Bugs listed in italics indicate the bug has been moved to another project.
File a Bug on this Package
New and Noteworthy
Eclipse PlatformEclipse Mylyn
EGit
Eclipse Code Recommenders
Testing Details
Creating a C++ application using the Standard Template Library and the CDT
This article, which is a follow-up to 'C/C++ development with the Eclipse Platform,' is intended for C++ developers who want to learn C++ development using the Eclipse CDT. A simple C++ application is developed in the article. The application makes use of the C++ STL. Readers should be familiar with the STL, as well as with basic object-oriented programming principles such as inheritance and polymorphism. A familiarity with Eclipse will be helpful, but is not required.
Before we start
You need to install the following:
- Eclipse
We're using the CDT, which is a plug-in to Eclipse, so of course you need Eclipse. The article uses Eclipse V3.2.
- Java Runtime Environment
We're building a C++ application, but we're using Eclipse. Eclipse is a Java application itself, so it needs a Java Runtime Environment (JRE). The article uses Eclipse V3.2, which requires a JRE of V1.4 or higher. If you want to also use Eclipse for Java development, you'll need a Java Development Kit (JDK).
- Eclipse C/C++ Development Toolkit (CDT)
This article is about the CDT, so you'll need it, of course. For instructions on installing the CDT on early versions of Eclipse, read a 'C/C++ Development with the Eclipse Platform' (developerWorks 2003) .
- Cygwin
If you're using Microsoft Windows®, you will find Cygwin — which provides a Linux®-like environment on Windows — helpful.
- GNU C/C++ Development Tools
The CDT uses the standard GNU C/C++ tools for compiling your code, building your project, and debugging the applications. These tools are GNU Compiler Collection (GCC) for C++ (g++), make, and the GNU Project Debugger (GDB). If you're a programmer using Linux or Mac OS X, there's a pretty good chance these tools are installed on your machine. The article contains instructions for setting up these tools for Windows.
The Eclipse CDT
The Eclipse CDT is an Eclipse plug-in that transforms Eclipse into a powerful C/C++ IDE. It was designed to bring many of the great features Eclipse enjoyed by Java developers to C/C++ developers, such as project management, integrated debugging, class wizards, automated builds, syntax coloring, and code completion. When Eclipse is used as a Java IDE, it leverages and integrates with the JDK. Similarly, the CDT leverages and integrates with standard C/C++ tools, such as g++, make, and GDB. This has lead to it becoming very popular on Linux, where those tools are readily available and used for most C++ development. The CDT can be set up on Windows to use the same tools. There is also an ongoing effort to get the CDT to work with Microsoft's C++ tools to make it even more attractive to Windows C++ developers.
Installing the CDT
We start by assuming you installed Eclipse and can run it. If not, consult Eclipse's Web site for getting up and running. Let's install the CDT. The CDT is an Eclipse plug-in, so it uses Eclipse's Software Updates feature. Select Help > Software Updates > Find and Install.
Figure 1. Eclipse Software Updates
Next, you'll want to choose Search for new features to install.
Figure 2. Search for new features
Eclipse For C Mac Os X 10.8
If you're using a newer version of Eclipse, the Callisto or Europa discovery sites should be included. (Editor's note: Since this was written in April 2007, the Europa release was still in the planning stages. However, installing Europa is expected to be similar to Callisto.) Simply select it and click Finish.
Figure 3. Callisto Discovery Site
Eclipse might ask you to choose from a list of mirror sites for the Callisto Discovery Site. Pick whatever one seems closest to you. You should see a list of plug-ins from the Callisto Discovery Site. You'll want to select C and C++ Development and click Next.
Figure 4. Available Callisto plug-ins
You'll be asked to accept the license for the CDT. Once you've done that, you can click Next. You'll see a summary of what's going to be downloaded and installed. Simply click Finish.
Figure 5. Download and installation summary
Eclipse's Update Manager will then download the CDT plug-in from the mirror site you selected earlier. The CDT is about 11 MB total, so this could take a few minutes, depending on your Internet connection speed. Once everything is downloaded, you'll be asked to confirm that you want to install the new features. Click Install All.
Figure 6. Confirm installation
After you finish installing CDT, you'll be asked to restart Eclipse. Go ahead and do that. Once Eclipse restarts, the CDT will be ready to go.
Windows configuration
If you're running Eclipse on Linux or Mac OS X, you're ready to start using the CDT to develop a C++ application. If you're on Windows, there might be a few more steps. As mentioned, CDT relies on the standard GNU C++ development tools: g++, make, and GDB. These are usually included on Linux or Mac OS X. They're usually not included with Windows. But don't worry. These tools can be easily installed on Windows. Perhaps the easiest way is to install Cygwin. Cygwin provides Linux-like environment on Windows (see Related topics). When installing Cygwin, you'll be asked to pick the packages you want to install. Make sure to go into the development section and select gcc: g++, make, and GDB. This will cause their prerequisites to be installed, too.
Once you're done installing Cygwin, you'll need to add g++, make, and GDB to your path. The easiest way to do this is to add Cygwin's bin directory to your path, since that's where g++, make, and GDB can be found. Once that's done, restart Eclipse.
Playing the lottery
At this point, we should be ready to start developing our application with CDT. Let's pause to figure out what we want to develop. The sample application is a simple command-line program for generating lottery numbers. Many states have lotteries, and the rules vary quite a bit. We'll allow the user to pick which state lottery he wants to generate numbers for. This will provide us a good way to use C++'s support for polymorphic behavior.
Download Eclipse Java For Mac
Creating the project
Eclipse uses the concepts of perspectives to allow for various plug-ins to customize their commands and views. Eclipse starts off by default in the Java perspective. CDT includes its own perspective, so we'll want to switch to that. To do that, select Window > Open Perspective > Other. You should see a list of perspectives available to you. Select the C/C++ perspective and click OK.
Figure 7. Select C/C++ perspective
Eclipse should now look something like Figure 8.
Figure 8. The C/C++ perspective
Eclipse organizes your code into projects, so we'll want to create a new project. Select File > New > Managed Make C++ Project.
Figure 9. New C++ project
You might have noticed there were several different options for the project. We wanted a C++ project. We selected a 'Managed Make,' since that will allow Eclipse to create the make file for us. You could select a 'Standard Make' flavor and write your own make file. We should now be in the New Project wizard, where we'll name our project Lottery and click Finish.
This will create an empty project, which you should see in the C/C++ Projects window. Right-click on the project and select New > Source Folder. This will bring up the 'New Source Folder' wizard, where we'll name our folder src and click Finish.
Basic lottery
We're ready to start creating some code. We'll start by creating the executable of our application. Right-click on the source folder we just created and selected New > Source File, as shown in Figure 10.
Let's create an empty main method for now. This is just a placeholder; we'll add more to this after we've created the rest of our project.
Save your project, and Eclipse will make it for you automatically. You should see some output in the console indicating that it compiled successfully.
We're ready to create our first class. Right-click on the source folder we just created and select New > Class.
Figure 10. New class
This should bring up the New Class wizard. We'll give our class a namespace lotto, and we'll call our class Lottery.
Figure 11. Lottery class
Eclipse will now create stubs for your class. CDT does a lot of nice things for you. It generates the appropriate compiler directives in the header file. It encourages best practices by generating separate interface (Lottery.h) and implementation (Lottery.cpp) files. It encourages another best practice by making your class' destructor virtual. We can enter the source code for these classes as seen in Listings 1 and 2.
Listing 1. Lottery.h
Listing 2 shows the implementation file for the Lottery
class.
Listing 2. Lottery.cpp
What's this code doing? Well, our Lottery
class has two attributes. The ticketSize
attribute is the number of numbers on the lottery ticket. The maxNum
is the maximum number on the ticket. Later, we'll use the Florida state lottery as an example. There, you pick six numbers from 1 to 53, so ticketSize
would be 6 and maxNum
would be 53.
The generateNumbers
method generates an array of numbers corresponding to the numbers on a lottery ticket. It uses the STL function rand()
to generate numbers randomly. The allNums
array is used to keep track of what numbers have been generated so far, so we can make sure we don't get a duplicate number on our ticket. Finally, the printTicket()
creates a string representation of our ticket.
When you save the files, Eclipse builds your project automatically. Again, if you save the project, it should be compiled and you should see compilation messages in the console, as shown in Listing 3.
Listing 3. Compiler output in console
MegaLottery
class
You might have noticed that we made the printTicket()
method virtual when it was declared in the header file. That will allow us to subclass Lottery
and override this method. We wanted to do that because some states have a lottery with a 'mega' number. This is a separately drawn number that any ticket must match in addition to the other numbers drawn. Let's create a MegaLottery
class for these states that will subclass Lottery
.
Once again, right-click on our source folder and select New > Class, as we did earlier. This time in the New Class wizard, we'll declare our new class in the same namespace, but call it MegaLottery
.
Figure 12. MegaLottery
class
To subclass Lottery
, select the Add button next to the Base Classes section. This will bring up the Choose Base Class dialog. You can start typing the name of the class, and Eclipse will narrow the list of base class candidates quickly. You'll want to select Lottery and click OK.
Figure 13. Choose base classes
We can enter the code for MegaLottery
, as shown in Listings 4 and 5.
Listing 4. MegaLottery.h
Listing 5 shows the implementation file for the MegaLottery
class.
Listing 5. MegaLottery.cpp
The main difference between Lottery
and MegaLottery
is that MegaLottery
has an extra attribute maxMegaNum
. This is the max value that the mega number can take. It overrides the printTicket()
method. It uses the base class to generate the first part of the ticket, then it generates the mega number and appends it to the string representation of the ticket.
We just need a way to create the various lotteries. We'll use a class Factory Pattern
to do this. We'll do this by adding a LotteryFactory
class. We want all Lotteries
to come from the same factory, so we'll make LotteryFactory
a singleton. The code for it is in Listings 6 and 7.
Listing 6. #ifndef LOTTERYFACTORY_H_
Listing 7 shows the implementation file for the LotteryFactory
class.
Listing 7. LotteryFactory.cpp
The LotteryFactory
has an enum of the different types of lotteries. We've only put in Florida and California in the example, but it shouldn't be hard to add as many as you want. The LotteryFactory
's constructor seeds the rand()
function used by our lottery classes. We just need to implement our executable's main method.
Listing 8. Main.cpp
Running the program
We're ready to run our program. Select Run > Run.
Figure 14. Choose base classes
Select C/C++ Local Application and click the New button.
Figure 15. New C/C++ run profile
This will bring up the Create run configuration interface for the Lottery project. You'll need to select its executable by clicking the Search Project button.
Figure 16. Search project for executable
You can select the binary that Eclipse created for you and click OK.
Figure 17. Search project for executable
Just click Run, and the program should run in your console. The code below shows some sample output.
Debugging the program
Our program should run fine, but let's take a look at debugging the application. First, create a breakpoint in our code. Pick a line and right-click next to it and select Toggle Breakpoint.
Figure 18. Create breakpoint
We need to create a debug configuration, much like we created a run configuration. Select Run > Debug.
Figure 19. Create debug configuration
This should bring up the Debug configuration. This is based on the Run configuration, and you shouldn't need to change anything. Just click Debug.
Eclipse Java Mac
Figure 20. Debug configuration
Once the debugger starts, it will prompt you to switch to the Debugger perspective. Do so. Notice that in the configuration we set things to break automatically at the startup of our main method. Thus, the debugger should break immediately and you should see a screen something like Figure 21.
Figure 21. The debugger
Eclipse For Mac Os X
Summary
Eclipse For Mac Os X Yosemite
We've built and debugged our lottery application. You can easily add more lottery schemes to it. Some of these could involve additional subclasses. CDT makes it easier than ever to create these classes and class hierarchies, and to run and debug the application to test it.
Eclipse For C Mac Os X+ Mac Os X
Downloadable resources
Related topics
- Integrate an external code checker into Eclipse CDT (Alex Ruiz, developerWorks): Learn how to execute C/C++ code analysis tools with Codan in Eclipse.
- Get an overview of the CDT in 'C/C++ development with the Eclipse Platform.'
- Dig deep into the CDT's architecture in the five-part series titled 'Building a CDT-based editor.'
- As someone interested in C/C++ development, you might want to check out a trial of IBM's XL C/C++ compiler for Linux or AIX®.
- Windows developers can learn about migrating to the CDT in 'Migrate Visual Studio C and C++ projects to Eclipse CDT.'
- Windows developers can also check out the CDT-MSVC project, a project for incorporating Microsoft's compiler and debugger with CDT.
- Learn about MinGW, the GNU C/C++ tools for Windows included with Cygwin.
- Download Cygwin a Linux-like environment for Windows. It consists of two parts: A DLL that acts as a Linux API emulation layer providing substantial Linux API functionality and a collection of tools that provide a Linux look and feel.
- The Eclipse C/C++ Development Toolkit (CDT) download information contains the latest information about the available versions of CDT.
- Check out the 'Recommended Eclipse reading list.'
- For an introduction to the Eclipse platform, see 'Getting started with the Eclipse Platform.'