Reputation: 930
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?
Upvotes: 21
Views: 6878
Reputation: 930
The latest java update for mac removed the 32bit mode and thus doesn't offer the -d32. There are various solutions for this problem:
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
The problem seems to be gone with the Flex 4.8 SDK
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
Upvotes: 41