Skip navigation
bryanrieger
Currently Being Moderated

Publish to iOS: Unable to find llvm JNI lib

Nov 6, 2012 4:39 AM

Tags: #air #error #ios

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.jav a:1848)

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

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

at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.j ava: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.

 
Replies
  • Currently Being Moderated
    Nov 7, 2012 1:10 AM   in reply to bryanrieger

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 13, 2012 6:10 AM   in reply to neh@adobe

    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)
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2012 12:43 AM   in reply to Sidhe

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2012 10:33 AM   in reply to neh@adobe

    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.

     
    |
    Mark as:

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