Tuesday, November 30, 2010

Setup environment variables in Mac OS when using Eclipse

While trying to get Eclipse Ant builds working on Mac OS I found that I needed to setup environment variables.  Normally in Linux and Windows I knew how to do this, however things are a little different on the Mac.
Using help from this link I was able to add the appropriate variables that I needed to run my Ant builds in Eclipse.
Basically from a terminal you would use the following command:
sudo vi /etc/launchd.conf


Then add add entries as necessary:

setenv GWT_HOME /Users/hathaway3/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0

setenv GWT_INCUBATOR /Users/hathaway3/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0


The only bad thing is that you must reboot after making these changes.

No comments:

iPod Touch Deals