Skip to main content
Participant
June 15, 2012
Answered

ANE: Unable to find llvm JNI lib

  • June 15, 2012
  • 3 replies
  • 6081 views

When trying to build a simple test application in Flash Builder 4.6 to iOS I'm getting the following error when I try to package any ANE into the project and then package it for iOS (for both fast and slow packaging methods).

I've tried with several different ANEs and the result is always the same. I've also tried reinstalling Flash Builder 4.6 and overlaying the latest AIR SDK on top of the Flex SDK and to no avail.

Note, that the liblvm.jnilib and llvm.dll files are present in the /Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib/aot/lib/x64 directory.

I'm using Mac OS X (10.7.4).

Here is the error:

Error occurred while packaging the application:

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

/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib/adt.jar/Darwin

/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib/aot/lib/x64

/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib/adt.jar

/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/lib

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

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

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

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

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

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

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

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

          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)

This is a massive blow for me. I'm unable to deploy to iOS.

This topic has been closed for replies.
Correct answer HopkinFrog

I managed to figure out how to get around this, but I'm not sure why it was happening.

I had recently updated my JDK to JDK 1.7 and under Java preferencees in Mac OS X had specified that to take highest priority for all JREs on my system.

When I simply changed the order, bringing the already installed, previously default JRE 1.6 to the highest priority JRE on my system - it worked.

I can of course manually use JDK 1.7 where I like in other projects on my machine, but its clear that this was causing ADT to throw up.

3 replies

Participant
May 31, 2013

I successfully resolved this issue with the help of this thread:

http://forums.adobe.com/message/4932347

There was no need to downgrade java...

HopkinFrogAuthorCorrect answer
Participant
June 17, 2012

I managed to figure out how to get around this, but I'm not sure why it was happening.

I had recently updated my JDK to JDK 1.7 and under Java preferencees in Mac OS X had specified that to take highest priority for all JREs on my system.

When I simply changed the order, bringing the already installed, previously default JRE 1.6 to the highest priority JRE on my system - it worked.

I can of course manually use JDK 1.7 where I like in other projects on my machine, but its clear that this was causing ADT to throw up.

Participant
October 31, 2012

Using Mountain Lion.  Updated to 1.7 and received this error.  I "fixed" it by simply removing the JDK1.7 from /Library/Java/JavaVirtualMachines - making the folder blank.

***You might want to ensure that you have the 1.6 sdk in  /System/Library/Java/JavaVirtualMachines  - which you should if you have Mountain Lion....but ya never know with Apple ;-)

I removed JDK1.7, restarted my machine, fired up FlexBuilder 4.6 - walla - worked fine.

Now to see if Adobe fixed the android touch lag bug in Air 3.5 (fingers crossed)....

James

Inspiring
December 29, 2012

I have now tried EVERYTHING and I can't get this fixed.  Apparently you can't install the 1.6 jdk onto a Mac running Mountain Lion.  I've tried every workaround I could find on the web - nothing works.  Help!  This is ridiculous.  I'm totally stuck.  I keep getting the errors above and I can't get Flash to create a .ipa file. 

Does anyone have any other suggestions?

Michael

June 15, 2012

What is the AIR SDK version you are using?

You can check by /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adt -version

Also, are you able to package an IPA using the adt command line?

Participant
June 15, 2012

AIR SDK version is 3.1.0.4880

I haven't tried to package using ADT command line yet - I'll give it a go.