02-09-2012 04:43 AM
Attempting to package using Ripple, to deploy to emulator, I get a rather unhelpful "AIR Exception" message, and not much else.
Turning to the command line tools, I get:
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[WARNING] Failed to find the <author> element
[INFO] Populating application source
[INFO] Compiling WebWorks application
Error loading: c:\android\jdk1.7.0_02\jre\bin\server\jvm.dll
[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.createSpla
r.java:723)
at net.rim.tumbler.airpackager.AirPackager.run(AirPac
at net.rim.tumbler.WidgetPackager.go(WidgetPackager.j
at net.rim.tumbler.WidgetPackager.main(WidgetPackager
[ERROR] Air Packager exception occurred
... help?
02-09-2012 01:50 PM
Hi there,
This one can happen for a number of reasons and unfortunately will require a bit of a shotgun approach.
The first thing to double-check is that you have installed the JDK, specifically version 1.6 and 32-bit. You can check the installed JDK versions in the default folder:
- C:\Program Files\Java; or
- C:\Program Files (x86)\Java
You should only have one JDK (and corresponding JRE) installed on your PC. The next step is to ensure that your PATH system environment variable includes the 'bin' sub-folder. Example:
C:\Program Files\Java\jdk1.6.0_23\bin
If the above change is made, it is best to restart your PC fully before proceeding.
From there, please ensure you are using the most recent WebWorks-TabletOS SDK and AIR SDK. Can you please confirm the versions you have installed?
Finally, can you please provide the full command-line action you are executing, as well as your OS version (i.e. Windows XP) and format (32-bit or 64-bit.)
Erik Oros
BlackBerry Development Advisor
02-09-2012 01:58 PM
02-09-2012 02:00 PM
Interesting. Let me compare that section against our docs and I'll get back to you in a little bit. I'll try to reproduce this issue as well with my tools.
Erik Oros
BlackBerry Development Advisor
02-09-2012 02:03 PM
02-09-2012 02:07 PM
The attributes themselves are optional, so it may be worth taking them out and adding them back in one-by-one to see if it's a specific one causing the break.
Also, to confirm, is your config.xml contained within the mainApp folder or is mainApp a sub-folder from your config.xml?
I'm not sure how clear that is.
Basically, what does the structure of your project look like? Your config.xml should be contained at the root, so what sub-folders do you have from there?
Erik Oros
BlackBerry Development Advisor
02-09-2012 02:16 PM
I have a feeling the backgroundImage and foregroundImage should look like this:
<rim:loadingScreen backgroundImage="images/google-voice-icon256.png" foregroundImage="images/google-voice-icon64.png" onLocalPageLoad="true"> <rim:transitionEffect type="zoomIn" /> </rim:loadingScreen>
My guess is that mainApp is your actual root folder, so all relative paths will be referenced from there, meaning you need to start with images when referencing those files.
I was able to produce the packaging error if my paths were specified improperly (i.e. the sub-folder does not actually exist.)
Erik Oros
BlackBerry Development Advisor
02-09-2012 02:24 PM
02-09-2012 02:30 PM
In that case, the path you specified should be fine it seems.
Full docs on config.xml and its components can be found here:
The rim:loadingscreen element is here:
If the paths are fine, I'm actually not seeing what part of that element would be causing the break as I used it exactly the same in my project, I then created the folder path (with images), and packaged just fine using:
<rim:loadingScreen backgroundImage="mainApp/images/google-voice-icon256.png" foregroundImage="mainApp/images/google-voice-icon6 4.png" onLocalPageLoad="true"> <rim:transitionEffect type="zoomIn" /> </rim:loadingScreen>
Can you share the packaging command you're executing from the command line? As well as the folder from which you are running the command?
Erik Oros
BlackBerry Development Advisor
02-09-2012 02:41 PM
set JAVA_HOME="c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\jre" c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\bbwp c:\users\eric\ripplesites\gv\gvbb.zip -p c:\temp\gvbb c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-The app source is all in c:\users\eric\ripplesites\gv The app loads some files from there, which then load some files in mainApp\ where all of the assets are currently stored. I'm going to read through those documents this evening, and I'll hopefully be able to locate the problem on my end. Thank you for your assistancedeploy -installApp -password blackberry -device 192.168.109.128 -package c:\temp\gvbb\gvbb.bar