Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Contributor
divait
Posts: 3
Registered: ‎10-08-2013
My Device: Dev Alpha B

Error in Flash Builder with Class BarAirPackager

Hi I try to Working with Flash Builder 4.7 to create my Hello World in BlackBerry but after install BB AIR SDK and Create  the proyec y recive the follow error when i run it:

 

 

Error occurred while packaging the application:

Packaging failed:1
java.lang.NoClassDefFoundError: com/qnx/bbt/airpackager/BarAirPackager
Caused by: java.lang.ClassNotFoundException: com.qnx.bbt.airpackager.BarAirPackager
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.qnx.bbt.airpackager.BarAirPackager.  Program will exit.
Exception in thread "main"

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Error in Flash Builder with Class BarAirPackager

did you reference the BB SDK libraries into your project?
How are you running it? In a simulator or device?
Do you have your signing keys setup properly?
New Contributor
divait
Posts: 3
Registered: ‎10-08-2013
My Device: Dev Alpha B

Re: Error in Flash Builder with Class BarAirPackager

The first question of refer the BB SDK I'm not sure, can you guide me with that.

The Second one: i try to running in both device and simulator, every tiem i get the same error

the signing process i do it a lot of times in Momentics, Eclipse, etc. so i think that is working rigth

 

Thanks and please help me

 

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Error in Flash Builder with Class BarAirPackager

Under the project properties, Build Packaging/BlackBerry. Select "Add platform specific libraries to library path". Verify in the "Native Extensions" tab you have at least QNXDevice.ane and QNXSkins.ane checked in the far right column.
New Contributor
divait
Posts: 3
Registered: ‎10-08-2013
My Device: Dev Alpha B

Re: Error in Flash Builder with Class BarAirPackager

I do what you tell me but it still appearing the same Error,

Any other idea. Thanx

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Error in Flash Builder with Class BarAirPackager

Hopefully, someone can step in. Maybe suggest to try to package up the file via the command line. Maybe that would uncover something. Assume you have the correct SDK path set for packaging??