Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MXMLC in Flex SDK 4.5 doesn't work on Mac OS 10.8

Tags:

Starting mxmlc on the latest mac exits with error message:

Error: This Java instance does not support a 32-bit JVM. Please install the desired version.

How to fix?

like image 482
Martin Heidegger Avatar asked Nov 09 '12 05:11

Martin Heidegger


1 Answers

The latest java update for mac removed the 32bit mode and thus doesn't offer the -d32. There are various solutions for this problem:

  • Remove the -d32 part of the mxmlc script.

    The mxmlc file is a "regular text file" that can be edited with any editor. vim should do the job. The easy fix is to just "comment" the "-d32" part out like this:

    # if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" ]; then #      D32='-d32' # fi 
  • Use new Flex SDK

    The problem seems to be gone with the Flex 4.8 SDK

  • Change to old java version

    1.) Remove the old java http://www.java.com/en/download/help/mac_uninstall_java.xml 2.) Install the older version by typing "java --version" in the command line

like image 155
Martin Heidegger Avatar answered Nov 22 '22 14:11

Martin Heidegger