Tag Archives: Eclipse

Install Eclipse C/C++ Juno on Mac OS X


This tutorial will explain how to install and use Eclipse C/C++ with Mac OS X. I wrote a tutorial for Windows 7 some time ago because you need to install some additional software to be able to compile your programs. With Mac OS X this should be more easier if you already have Xcode installed.

Prepare your system

Apple offers you a free collection of development tools called Xcode. It although contains a IDE for Objective C and iOS development. Beside this it tools there are a lot of useful tools like different version control systems and console tools and very important the compilers. Because this is packed and very easy to install you should go to the AppStore and install Xcode if you don’t have it yet.

You will need to have Java installed on your Mac OS X as well but this is just a click if you try to run a Java application the first time.

Xcode Appstore Screenshot


Download Eclipse CDT for Mac OS X

Download the Eclipse CDT version of Eclipse from eclipse.org. I prefer the 64bit version.

Eclipse CDT MacOSX 64bit version


Extract the downloaded archive and move the eclipse folder to your Application directory. I renamed the folder to eclipse-cdt because I have different version of Eclipse in my Application folder. But the folder should contain the following files:

Eclipse CDT folder Mac OS X


Now you should be able to run the Eclipse IDE.

Eclipse Startscreen

First the Eclipse splashscreen will appear. Then you will be asked to define your workspace like the following prompt:

Eclipse define workspace prompt

Choose a folder or use the default value and continue with OK:

Eclipse CDT Mac OS X empty UI

You should get something like a welcome page or continue an empty overview over your new Eclipse C/C++ IDE.

Create a new C++ Project as shown below:

Eclipse Mac OS X create new C++ project

Eclipse CDT Mac OS X create new C++ project

Build the new project if it’s not done automatically after creation and run the binary:

Hello World programm C++ Max OSX Eclipse CDT

If everything went well you should see the Hello World message in your output console:

Eclipse C++ IDE Hello World on Mac OS X

How to find the eclipse.ini configuration file

Because the eclipse.ini file is hidden in the Mac package I wrote a blog post some time ago how to change it. You can find the post here. Should work for Eclipse Juno as well.

Maybe this helps you to get your IDE up and running to do awesome stuff with it. Feel free to add a comment if I missed a step.

Build the iDempiere Project using Eclipse with buckminster

This tutorial explains the setup of an development environment for building the iDempiere project.

First download a the newest Helios(3.6) version of Eclipse. Be careful Helios is not the newest version of Eclipse but you need the newest version of Helios 3.6.2.x.

Now start Eclipse and install the following plugins.

  • buckminster core
  • buckminster maven
  • buckminster pde
  • mecurialeclipse (optional if you want to commit out of eclipse)


Update (2014-06-03):

I just tested this tutorial with Java 1.7.0 and Eclipse Kepler SP2 (4.3) on my Mac Book and it worked like a charm.
For all who are using the new Eclipse release this is possible, too.
Here is the Buckminster update pages I used for installing the plugins:


Next step is to download the sources via mecurial:
hg clone https://bitbucket.org/idempiere/idempiere idempiere

This new created directory needs to be your workspace in Eclipse. You can select this at startup of Eclipse.

Create a new target platform in the Eclipse preferences.

Create a new empty directory within your workspace where all the other stuff is located now called: targetPlatform

Preferences -> Plug-in Development -> Target Platform -> Add

Follow the steps on the screenshots:

target definition
Close the preferences window if you are done and right click into the project explorer and click import.
Choose buckminster:
And click Finish to start the process. This takes a while.
You Eclipse should look something like this now:
If you want to start the java client out of eclipse now you can do this by selecting the org.adempiere.ui.swing package and right click -> run as -> Eclipse application.

Install Tomcat with Eclipse

Howto install Tomcat with Eclipse IDE on MacOS X.

What we need:


Eclipse JEE

1. Extract Eclipse into your Applicationfolder and Tomcat to your prefered location for example into your home directory.

2. change into the apache-tomcat-6.0.20/bin directory and make all .sh files executeable

cd <pathtoyourtomcat>/apache-tomcat-6.0.20/bin
chmod +x *.sh

3. test if it starts


something like this should appear:

Using CATALINA_BASE:   apache-tomcat-6.0.20
Using CATALINA_HOME:   apache-tomcat-6.0.20
Using CATALINA_TMPDIR: apache-tomcat-6.0.20/temp
Using JRE_HOME:       /System/Library/Frameworks/JavaVM.framework/Home

4. Test you tomcat installation via your Browser


if everything works like expected shut the tomcat instance down


5. Now we add Tomcat to our Eclipse environment

Double click on the server and select “Use Tomcat installation (take control of Tomcat installation)”:

Set tomcat preference to use installation directory parameters

Set tomcat preference to use installation directory parameters


6. Modify the tomcat-users.xml file located in /<pathtotomcat>/apache-tomcat-6.0.20/conf directory and add:

<role rolename=”admin”/>
<role rolename=”manager”/>
<user username=”user” password=”password” roles=”admin,manager”/>

with your username and password for administration.

Install Eclipse CDT on Windows 7

How to install Eclipse CDT on Windows 7.

First of all we need a c++ compiler for Windows. The most popular c++ compiler is mingw. You can download it on the sourceforge project page.

We need 2 packages from this page.

1. mingw installer

2. minsys installer

First step is to install mingw.

Just follow the Wizzard step by step. If you want to add some additional features like other compilers choose them when asked. If not the default values should work as shown here step by step.

Select the following packages. This is just my selection. If you need some additional packages feel free to select them. But if you want to do only C++ this selection is enough.

Install MINSYS.

Set correct system variables.

You need add some values to your system variables. If you never have done this just follow the process shown below.

Open your Contorl Panel:

Scroll down and search for the Path variable and click edit.

Edit the Path-Variable. Add the highlighted values: “C:\mysys\1.o\bin” and “C:\mingw\bin” separated by semicolons as shown in the next screenshot.

Now we are ready to start Eclipse. If you have Eclipse already in use you need only to install the CDT plugin. If you don’t use Eclipse yet, dowload the CDT – Version from eclipse projekt page. Now start Eclipse and create a new C++ Hello World Projekt.




Install Git plugin for Eclipse

Git became one of the most popular distributed revision control system. It was developed by the linux kernel maintainer Linus Torvalds and has a big community. To include Git in your workflow or make it possible to review a repository you are working on it’s nice to have it included in your IDE. For Eclipse there is a project called EGit which develops an connector plugin. This short tutorial should help you to include EGit in Eclipse.

1. Go to: Help -> Install New Software

Add the EGit Download Site: http://download.eclipse.org/egit/updates

Add EGit download site to Eclipse

After you add the software repository you need to select the necessary packages for EGit.

select EGit packages for installation

The installer pulls needed dependencies automatically for you. In my case there are no more packages needed and with one click on the finish button the installation starts.

review installation details

After the Installation is completed it’s recommended to restart your Eclipse then you will see a new point called “Git” if you try to import a project.

import egit repository in eclipse

Enter the URL and log in information to connect your repositiory.

clone Git repository with EGit

Git: Project Page

EGit: Project Page


Install Mercurial Plugin on Mac OS X and Eclipse

This howto explains you howto install the HgEclipse plugin on MacOS X.

This howto explains you step by step how can install the Mercurial plugin for Eclipse on Mac OS X Systems.

Eclipse should be setup and running.


1. We install Mercurial on your system. You should have the newest Mercurial version for MacOS X. Download the package here.

2. Install this package follow the wizzard. If everything works you can verify the installation by execute following command in terminal:

 hg --version

Output should look like this:

Mercurial Distributed SCM (version 1.4.1+20091201)

3. Install Mac GnuPGP on your system. Download the files here. Extract it and run the installer. After successful installation log out and login again.

4. Start Eclipse and go to –> Help –> Install new Software –> Add

Link: http://hge.javaforge.com/hgeclipse

5. Install needed package:

6. After installation you need to do configuration:

Now you should be able to use the plugin.

For example import:


How to delete saved passwords in Eclipse

I saved my username and password for subversion repository but I wasn’t able to change them.

After some research I found a way to clear all saved passwords and usernames. On Mac OS X just move the ~/.eclipse_keyring away or delete it if you know all your usernames and passwords.

Now Eclipse should show you the password prompt. Uncheck the save password check box if you need to use different users out of eclipse for one repository.

Eclipse configuration files on Mac OS X

On Linux or Windows you can find the eclipse.ini file in the eclipse directory.
If you now run out of memory with some bigger projects you need to edit the eclipse.ini file to increase the max amount of memory for you eclipse java process.

1. Open Terminal and go to eclipse directory. My eclipse is located in Application directory.

#cd /Applications/eclipse/

2. Go where eclipse.ini is located. I am using Eclipse Ganymed so it looks like this:

#cd Eclipse.app/Contents/MacOS/

3. I use vi for changing the file:

#vi eclipse.ini

4. Make your changes and safe it. Here is an example for the file:




Note: Of course you also can use Finder to navigate into the directory and you can use Textedit for doing the changes. To open the Eclipse.app file you have to do “right click” on the Eclipse symbol in your eclipse directory and select ‘show packagecontent’.