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
java $VMARGS $D32 $SETUP_SH_VMARGS -jar "$FLEX_HOME/lib/mxmlc.jar" +flexlib="$FLEX_HOME/frameworks" "$@"

to this:

1
java $VMARGS $SETUP_SH_VMARGS -jar "$FLEX_HOME/lib/mxmlc.jar" +flexlib="$FLEX_HOME/frameworks" "$@"

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.

Testing

Following are some selections of text from Samuel Lipsum

Really I just need some filler text to test my awesome git setup here!

Now that we know who you are, I know who I am. I’m not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain’s going to be? He’s the exact opposite of the hero. And most times they’re friends, like you and me! I should’ve known way back when… You know why, David? Because of the kids. They called me Mr Glass.

Continue Thusly