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

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 2
Registered: ‎03-14-2011
My Device: Simulators
My Carrier: None

Air Packager exception occured

I'm unable to package my WebWorks application into a bar file.


I'm using windows 7 x64 enterprise edition.
WebWorks SDK for tablet OS.
Adobe AIR SDK -  2.5 
This is the output i get on runnin bbwp.
C:\>"C:\local\BlackBerry WebWorks Packager for PlayBook\bbwp\bbwp.exe" h:\Test.zip /o h:\
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating WebWorks archive
[INFO]                  Parsing config.xml
[INFO]                  Populating application source
[INFO]                  Compiling WebWorks application
Error: could not find a JVM
[INFO]                  Packaging the bar file
java.io.FileNotFoundException: C:\Users\sureshs\AppData\Local\Temp\widgetGen.123
17627451300093911952.tmp\Test.swf (The system cannot find the f
ile specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at net.rim.tumbler.file.FileManager.copyFile(Unknown Source)
        at net.rim.tumbler.airpackager.AirPackager.run(Unknown Source)
        at net.rim.tumbler.WidgetPackager.go(Unknown Source)
        at net.rim.tumbler.WidgetPackager.main(Unknown Source)
[ERROR]                 Air Packager exception occurred


This is my current setting for java.home in the jvm.config file at C:\local\BlackBerry WebWorks Packager for PlayBook\bbwp\blackberry-tablet-sdk\bin\jvm.config


java.home="C:\local\BlackBerry WebWorks Packager for PlayBook\jre\"


The following shows the JAVA_HOME variable.



C:\local\BlackBerry WebWorks Packager for PlayBook>ECHO %JAVA_HOME%

C:\Program Files\Java\jdk1.6.0_20\jre\




What is going wrong?? hw do i fix this??

Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Air Packager exception occured

This sounds like Windows 7 User Account Control (UAC) getting in the way.


Can you verify that the bbwp.exe WebWorks packager has the appropriate permissions (e.g. is running as administrator)?



Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Contributor
Posts: 2
Registered: ‎03-14-2011
My Device: Simulators
My Carrier: None

Re: Air Packager exception occured

[ Edited ]

I don't have administration rights.

If u could tell me exactly to what directories/files I'd need access to, I can request for access.


But even when i tried with admin rights i faced the same issue.

Could u tell me what else can cause this???




New Contributor
Posts: 3
Registered: ‎03-21-2011
My Device: Curve 2900
My Carrier: Rogers

Re: Air Packager exception occured

I had this same issue on my Windows 7 netbook (though not on my Windows Vista desktop).


I believe the issue was due to the fact that Java was installed under C:\Program Files\Java\...


I resolved the issue with the following steps:

1. I uninstalled java, double-checked the program directory under Program Files was gone, and manually deleted my JAVA_HOME environment variable.

2. I re-installed the latest Java JVM (same version I had previously) to C:\Java\jre6 (a path with no spaces).

3. I manually re-added a JAVA_HOME environment variable to point to this new location.


Compiling worked!


You can find some instructions on setting the JAVA_HOME variable here: http://wso2.org/project/wsas/java/1.1/docs/setting-java-home.html

Posts: 37
Registered: ‎03-10-2011
My Device: Not Specified

Re: Air Packager exception occured

I started to get this error in the last couple of days but it is random for me.  If I rebuild a 2nd time, no exceptions will be seen.

Is this happening on every app you have and are on the latest SDK (0.9.4)?

New Developer
Posts: 45
Registered: ‎09-28-2011
My Device: 2 x PlayBook, 3 Z10, 1 Q10, 1 DAC
My Carrier: a Norwegian

Re: Air Packager exception occured

I am getting this error to running Vista x86

[quote][INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating WebWorks archive
[INFO]                  Parsing config.xml
[INFO]                  Populating application source
[INFO]                  Compiling WebWorks application
[INFO]                  Packaging the bar file
javax.imageio.IIOException: Can't read input file!
        at javax.imageio.ImageIO.read(Unknown Source)
        at net.rim.tumbler.airpackager.AirPackager.createSplashscreen(AirPackage
        at net.rim.tumbler.airpackager.AirPackager.run(AirPackager.java:191)
        at net.rim.tumbler.WidgetPackager.go(WidgetPackager.java:152)
        at net.rim.tumbler.WidgetPackager.main(WidgetPackager.java:77)
[ERROR]                 Air Packager exception occurred[/quote]


trying to convert a html5 into bar

using BlackBerry WebWorks SDK for TabletOS


tried to switch to Ripple, but Ripple crashes always when I start it

[quote]Microsoft Visual C++ Runtime Library

Runtime Error!

Program: C:\Program Files\Research In Motion\Ripple\Ripple.exe


  Problemereignisname:    APPCRASH
  Anwendungsname:    Ripple.exe
  Anwendungszeitstempel:    4ee176f4
  Fehlermodulname:    MSVCR90.dll
  Fehlermodulversion:    9.0.30729.4148
  Fehlermodulzeitstempel:    4a594c79
  Ausnahmecode:    40000015
  Ausnahmeoffset:    0005bea4
  Betriebsystemversion:    6.0.6002.
  Gebietsschema-ID:    1031
  Zusatzinformation 1:    7fca
  Zusatzinformation 2:    0d61c08878a41cdd7b819b8b9d11ab41
  Zusatzinformation 3:    d215
  Zusatzinformation 4:    7e98a3c1987554fa21350c8389f9678c[/quote]


I hope there is somewhere a solution because it took days to find a solution and I could not find one.

New Developer
Posts: 45
Registered: ‎09-28-2011
My Device: 2 x PlayBook, 3 Z10, 1 Q10, 1 DAC
My Carrier: a Norwegian

Re: Air Packager exception occured

I tried it on a fresh installed Windows XP now too with the same result.

What's going wrong?

Are there any solutions to fix it?


I can not use Ripple, I can not convert any html5 into bar using comand line.

Is there another way?

Posts: 142
Registered: ‎07-27-2011
My Device: Red Z10, 32GB PlayBook, Numerous Android/WP8/FirefoxOS/Other devices
My Carrier: T-Mobile

Re: Air Packager exception occured

A bit late, but I found the answer for you; the Splashscreen element in your config is wrong. If you change it, you won't get that error.


This is what I have:


<rim:loadingScreen backgroundImage="images/splashscreen.jpg" >
<rim:transitionEffect type="fadeIn" />


Posts: 13
Registered: ‎11-13-2012
My Device: BlackBerry PlayBook 1, Curve 2, Bold 5 and Storm 2
My Carrier: Airtel Nigeria

Re: Air Packager exception occured

Sincerely BlackBerry Development Administrators, is there a solution to this? I can compile for Blackberry 10, Blackberry 7 and earlier, but for Blackberry Tablet OS no way! I can't exactly the same error the first message thread contributor get. And as I speak no solution and my boss is holding me responsible.


Due to this error my company lost a project bid! Now I dare any Blackberry Development Administration to give a working solution to this problem. You know what? This is not the only issue I have but if a solution to this first then you can win not just my trust but a lot of developers trust back!


I will be waiting for that solution, Thank You!!!

Posts: 18
Registered: ‎03-22-2013
My Device: Playbook
My Carrier: N/A

Re: Air Packager exception occured

I've been able to solve this by changing the value to the variable JAVA_HOME, since I had Windows 7 64-bit, the value of that variable pointing to the installation of java in C: \ Program Files \ Java \ jdk1.7.0_04, simply I changed by installing 32-bit Java, ie C: \ Program Files (x86) \ Java \ jdk1.7.0_04 and it works correctly.