Skip navigation
Currently Being Moderated

Add Java parameter to ADT launched by Flash Builder

May 1, 2013 12:39 PM

Hi All,


I'm suddenly having a problem with JDK/JRE 7 that is preventing me from exporting a release build of our mobile application for iOS.


Running on Windows XP,  Flash Builder 4.7 installed as a plug-in to SpringSource Tool Suite 3.1.0 (Eclipse Juno).


During the export of release build I'm hitting the following error:



Error occurred while packaging the application:

Exception in thread "main" java.lang.IllegalArgumentException: Comparison method violates its general contract!

    at java.util.TimSort.mergeLo(Unknown Source)

    at java.util.TimSort.mergeAt(Unknown Source)

    at java.util.TimSort.mergeCollapse(Unknown Source)

    at java.util.TimSort.sort(Unknown Source)

    at java.util.TimSort.sort(Unknown Source)

    at java.util.Arrays.sort(Unknown Source)






    at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(

    at com.adobe.air.ipa.BitcodeGenerator.main(

Compilation failed while executing : ADT


This appears to be a known issue with some code when migrating from Java 6 to Java 7. Seemingly you can work around this by applying the following parameter:




Unfortunately I can't find where the java parameters that are used to launch the ADT are specified:


I've found the following files and updated them to include this parameter, but changes don't seem to be picked up by Flash Builder:


<install-dir>\Adobe\Adobe Flash Builder 4.7\sdks\4.6.0\bin\adt.bat
<install-dir>\Adobe Flash Builder 4.7\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\bin\adt.bat


Can anybody here help? Frustrating as this used to work. No idea what's changed.





PS - I've also tried rolling back to JDK/JRE 6. Same export release build process is giving a different errors about an uncaught C exception.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points