Home / Expertise & Services / Featured / Flex & Flash / RIA Development / Technologies / Tutorials / Cairngen with Flex Builder 3 Eclipse Plugin on Mac OSX Leopard
At Excentrix Web, we are avid users and proponents of Open Source Software (OSS). Consequently, we are always looking for “what’s out there” instead of “reinventing the wheel”: we do this in order to increase ROI for our clients’ projects. When we decided to port a fairly complex Flex project to Cairngorm we decided to find something to help us avoid doing the initial coding of our stubbed classes by hand…Enter stage-right Cairngen!
We love Macs so naturally all our dev machines are Mac OSX Leopard. However, there have been times when we’ve been stung with intermittent compatibility issues between vanilla OSS-based projects and Leopard. One of those times was today when we attempted to get our Cairngen build working inside of the Flex Builder 3 Eclipse plugin IDE. (We practice what we preach with OSS so we do our Flex Builder dev in Eclipse.) We thought it would be simple to just right click on the build.xml, select “Run as -> Ant Build” and “voila!” Cairngen would work its magic…Well, that expectation was shot down quickly.
We noticed two errors. The original was:
1) “Unable to load a script engine manager” and…
After going down the path to resolve error #1 by downloading, installing, and configuring the Mac OSX JRE 1.6.0 with Eclipse we started receiving the next error:
2) “ java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon”
Doing further trouble-shooting of error #2 we figured out that error #2 resulted from the fact that JRE 1.6 does not work with the carbon-swt because Apple’s release of JRE 1.6 is purely 64-bit AND not backwards compatible with 32-bit based carbon-swt.
Through our trial and error we were able to get Cairngen working right. Simply take the following steps and your Cairngen will work:
You should now be able to right-click on Cairngen’s “build.xml’ file and select “Run As -> Ant Build” and everything will run like a charm!
June 2nd, 2009 at 12:43 pm
Hi, good post. I have been wondering about this issue,so thanks for posting.
June 5th, 2009 at 5:01 pm
Hi, Congratulations to the site owner for this marvelous work you’ve done. It has lots of useful and interesting data.