explorers' club

explorations in dev, science, sci-fi, games, and other fun stuff!

Improving Eclipse Compile Times on Mac


I am currently working on this HUGE project.  We are talking over 1500+ files and many hands dipping into the cookie jar.  Even multiple SVN Team Syncs per day can yield 50+ updates or more.  This all translates into very long and sometimes unsuccessful compilations of the project.

While looking up the proper syntax for your -vmargs in your Eclipse.ini, I stumbled upon this little nugget of info.

Mac OS X

On Mac OS X, you start Eclipse by double clicking the Eclipse application. If you need to pass arguments to Eclipse, you’ll have to edit theeclipse.ini file inside the Eclipse application bundle: select the Eclipse application bundle icon while holding down the Control Key. This will present you with a popup menu. Select “Show Package Contents” in the popup menu. Locate eclipse.ini file in the Contents/MacOS sub-folder and open it with your favorite text editor to edit the command line options.

On MacOS X you can only launch a UI program more than once if you have separate copies of the program on disk. The reason for this behavior is that every UI application on Mac can open multiple documents, so typically there is no need to open a program twice. Since Eclipse cannot open more than one workspace, this means you have to make a copy of the Eclipse install if you want to open more then one workspace at the same time (bug 139319).

If you need to launch Eclipse from the command line, you can use the symbolic link “eclipse” in the top-level eclipse folder. It refers to the eclipse executable inside the application bundle and takes the same arguments as “eclipse.exe” on other platforms.

On Mac OS X 10.4 and later, you may notice a slow down when working with significant numbers of resources if you allow Spotlight to index your workspace. To prevent this, start System Preferences, select the Spotlight icon, then the Privacy tab, then click the Add button (“+”) and find your workspace directory in the dialog that appears.

source = http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm

I did this and found my compile times drop significantly.  Hope this helps.


2 thoughts on “Improving Eclipse Compile Times on Mac

  1. Thanks for the tip. Here’s another. You CAN open multiple Eclipse instances (or many other application for that matter). Simply open Terminal, then type the following…

    open -n /Applications/eclipse/Eclipse.app


  2. Hello, Likeable to know you! This is a ethical place.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s