Archive for November, 2009
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).
1 commentI’m Back
Long story short, it has been a busy summer. Four months without a blog post is pretty hardcore. More updates to come shortly.
4 comments
