Wednesday, December 12, 2012

Blackberry Webworks Error

So I tried getting a Blackberry Webworks application for a playbook to package my html5 app and always got this error:


out: Error loading: C:\Program Files (x86)\Research In Motion\BlackBerry WebWork
s SDK for TabletOS 2.2.0.5\jre\bin\client\jvm.dll

out: [INFO]                     Packaging the bar file

error: java.io.FileNotFoundException: C:\Users\Patrick\AppData\Local\Temp\widget
Gen.5953573461355327252589.tmp\particleClock.swf (Das System kann die angegebene
 Datei nicht finden)

error:  at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at net.rim.tumbler.file.FileManager.copyFile(FileManager.java:481)
        at net.rim.tumbler.airpackager.AirPackager.run(AirPackager.java:232)
        at net.rim.tumbler.WidgetPackager.go(WidgetPackager.java:152)
        at net.rim.tumbler.WidgetPackager.main(WidgetPackager.java:77)

out: [ERROR]                    Air Packager exception occurred

On the BB support forum I read that it is a problem with the msvcr71.dll. Some suggests putting it in the System32 folder, or even place the whole BB bbwp folder there.
Since nothing of this worked I found a solution:

Open the bbwp.properties found in "[C:\Program Files (x86)\Research In Motion]\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\bin", or where ever you installed it, and change the Java tag to your JRE:


For example:
<java>C:\Program Files (x86)\Java\jre7</java>

While you are at it, you can also set the path to your debug token.

For example:
<debug_token>C:\Users\Patrick\Local Settings\Application Data\Research In Motion\debugtoken.bar</debug_token>

I hope this information helps someone someday.
Mfg Pat
 

No comments:

Post a Comment