4 Replies Latest reply on Dec 17, 2012 10:33 AM by Sidhe

    Publish to iOS: Unable to find llvm JNI lib

    999yiibu

      Whenever I try to publish to iOS using Flash Professional CS6 I get the following error.

       

      Exception in thread "main" java.lang.Error: Unable to find llvm JNI lib in:

      /Users/username/Tools/adobe/airsdk/3.5/lib/adt.jar/Darwin

      /Users/username/Tools/adobe/airsdk/3.5/lib/aot/lib/x64

      /Users/username/Tools/adobe/airsdk/3.5/lib/adt.jar

      /Users/username/Tools/adobe/airsdk/3.5/lib

       

      at adobe.abc.LLVMEmitter.loadJNI(LLVMEmitter.java:582)

      at adobe.abc.LLVMEmitter.<clinit>(LLVMEmitter.java:596)

      at com.adobe.air.ipa.AOTCompiler.generateExtensionsGlue(AOTCompiler.java:432)

      at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:1848)

      at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:428)

      at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:810)

      at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)

      at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:257)

      at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)

      at com.adobe.air.ADT.run(ADT.java:419)

      at com.adobe.air.ADT.main(ADT.java:469)

       

      This happens with the AIR 3.5 beta SDK as well as the built-in 3.4 and 3.2 SDKs.

      I'm running OS X 10.8.2 and suspect this thread (Mac Java Update Kills iOS Flash Publisher: http://forums.adobe.com/thread/1085439) may have something to do with my problem.

       

      Any help greatly appreciated.

        • 1. Re: Publish to iOS: Unable to find llvm JNI lib
          neh@adobe Level 3

          This is a known issue when using Apple Oracle Java 1.7.

          To resolve this issue, you will have to use Java 1.6 instead.

          • 2. Re: Publish to iOS: Unable to find llvm JNI lib
            Sidhe

            Is this really the only solution? I've been trying to go back to Java 1.6 following various threads found on internet but have been unable to get to work - does Adobe have any plans to fix on thier end? Here's error message I'm getting, have tried switching Air versions but didn't help. We've actually had to remove an app from app store because unable to export to fix a bug, so any help would be appreciated.

             

            Exception in thread "main" java.lang.Error: Unable to find llvm JNI lib in:
            /Applications/Adobe Flash CS6/AIR3.2/lib/adt.jar/Darwin
            /Applications/Adobe Flash CS6/AIR3.2/lib/aot/lib/x64
            /Applications/Adobe Flash CS6/AIR3.2/lib/adt.jar
            /Applications/Adobe Flash CS6/AIR3.2/lib
            
                 at adobe.abc.LLVMEmitter.loadJNI(LLVMEmitter.java:577)
                 at adobe.abc.LLVMEmitter.(LLVMEmitter.java:591)
                 at com.adobe.air.ipa.AOTCompiler.generateExtensionsGlue(AOTCompiler.java:407)
                 at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:1585)
                 at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:300)
                 at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:620)
                 at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)
                 at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:224)
                 at com.adobe.air.ADT.parseArgsAndGo(ADT.java:557)
                 at com.adobe.air.ADT.run(ADT.java:414)
                 at com.adobe.air.ADT.main(ADT.java:464)
            • 3. Re: Publish to iOS: Unable to find llvm JNI lib
              neh@adobe Level 3

              You should not encounter this issue when using Java 1.6 for packaging.

              Can you check your java preferences, in Application>Utilities and check if the priority of Java 1.6 is higher than Java 1.7?

              • 4. Re: Publish to iOS: Unable to find llvm JNI lib
                Sidhe Level 1

                Thanks but the Java utility is no longer available in OS X - what I did end up doing though was deleting the /Library/Java/JavaVirtualMachines/1.7.0.jdk directory, and guess the system just falls back to using 1.6 because now it's working - thanks again.