Flex SDK and 64-Bit OSX Java
Unable to compile your Flex projects because OSX says you have the wrong version of Java?
During one of the last Java updates on OSX the 32-Bit runtime was removed. Normally, this wouldn’t cause an issue but Adobe, in their infinite wisdom, decided to manually specify -d32 when calling the Flex utilities. Thankfully the fix is quite simple; simply remove the $D32 variable from the call to java in (if you installed Flex SDK with Homebrew) /usr/local/Cellar/flex_sdk/4.6.0.23201/libexec/bin/mxmlc
It should go from looking like this:
1
| |
to this:
1
| |
After that’s done you can call mxmlc and amxmlc as before. You’ll have to do the same for other utilities like compc
I have found no issues with this at all and it appears the call to -d32 is entirely arbitrary in this case.