Flex/Flash Builder + OS X 10.6 (Snow Leopard) SWT Carbon Errors

If you are a big user of Ant like I am, then you have probably encountered some problems with some of your Ant scripts when launching them from within Flex or Flash Builder under OS X 10.6 (Snow Leopard). In a nutshell, the problem is due to OS X 10.6 defaulting to 64-bit VMs, no longer supporting older Carbon apps. If you see an error in your Eclipse console complaining about missing ‘swt-carbon’ or incompatibility with the 64-bit VM – read on for a simple fix.

In the Eclipse file menu, browse to Window > Preferences… > Java > Installed JREs. If JVM 1.6.0 is not selected as the default, go ahead and select it. Next, highlight JVM 1.6.0 and click the ‘Edit…’ button. In the window that appears, there should be an input box for ‘Default VM Arguments’. Enter the following argument (without the quotation marks): ‘-d32′. Press ‘OK’ to save the changes and then go ahead and restart the application.

If you followed the instructions correctly, you should no longer encounter these types of errors when running your Ant script(s).


4 Comments so far

  1. Steve Daly February 4th, 2010 11:47 am



  2. qplayz April 20th, 2011 3:58 pm

    Thanks for share this Article, but u must come back! You´ve got an great Blog what i really like…

    Many regards from Germany,

  3. mat January 22nd, 2012 6:13 pm

    hey man, i know this probably isn’t the right place to ask about this, but i heard that picnik is closing it’s site in April and i was wondering if there was somewhere i could download the HSL filter or if there are any other websites where i could still use use it cause it’s one of my favourite effects and i haven’t seen another one quite like it yet.

  4. Ryan Taylor January 30th, 2012 7:06 pm

    @mat – The source code for my HSLFilter shader is available here:

    @qplayz – I’m hoping to be back in action on my blog sometime soon!

Leave a reply

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image