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

Web and WebWorks Development

Reply
Developer
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2
Accepted Solution

Signing Tablet application

Hi,

 

I am trying to create a tablet application for the first time and wanted to run it on a real Playbook. Unfortunately I am getting this error:

 

C:\Program Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS
2.2.0.5
\bbwp>bbwp.exe c:\WebWorks\KanjiDraw\kanjidraw.zip
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating WebWorks archive
[INFO]                  Parsing config.xml
[WARNING]               Failed to find a <feature> element
[INFO]                  Populating application source
[INFO]                  Compiling WebWorks application
Error loading: C:\Program Files\Research In Motion\BlackBerry WebWorks SDK
for T
abletOS 2.2.0.5\jre\bin\client\jvm.dll
[INFO]                  Packaging the bar file
java.io.FileNotFoundException:
C:\Users\USER\AppData\Local\Temp\widgetGen.97
22903841319996425543.tmp\kanjidraw.swf (The system cannot find the file
specifie
d)
        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)
[ERROR]                 Air Packager exception occurred

C:\Program Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS
2.2.0.5
\bbwp>

 It is a Windows 7 32bit with the latest Tablet SDK and Adobe AIR 3.0SDK. Registering the Keys worked as designed. The "jvm.dll" does exist indeed.

 

What I am missing?

 

Thanks. bert2002



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Retired
Posts: 34
Registered: ‎10-24-2011
My Device: Curve
My Carrier: Telus

Re: Signing Tablet application

What version do you get when opening console and running javac -version?


1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Developer
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: Signing Tablet application

javac cant be found :smileyhappy:

It is available in C:\Program Files\Java\jdk1.6.0_26\bin

 

I added it to the windwos PATH env and now VOILA its now working to create a bar file.

 

Thanks a lot!



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: Signing Tablet application

Share my tip to others for Webworks Package.

7.Package application for Smartphone Webworks
cd C:\Program Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk
bbwp "C:\Users\test.zip" -o "C:\Users"
a. See Failed to find a <feature> element. --> The <feature> element is not a required field, so this warning message should not be considered an error.


b.Solve jvml.dll issue by reinstall jdk 32 bit and blackberry applications to the same directory under Program Files (x86).
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[WARNING] Failed to find a <feature> element
[INFO] Populating application source
[INFO] Compiling WebWorks application
Error loading: C:\Program Files\Java\jdk1.6.0_18\jre\bin\server\jvm.dll
[INFO] Packaging the bar file
java.io.FileNotFoundException: C:\Users\Admin\AppData\Local\Temp\widgetGen.18064
135761294971417022.tmp\test.swf (The system cannot find the file sp
ecified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at net.rim.tumbler.file.FileManager.copyFile(FileManager.java:473)
at net.rim.tumbler.airpackager.AirPackager.run(AirPackager.java:126)
at net.rim.tumbler.WidgetPackager.go(WidgetPackager.java:154)
at net.rim.tumbler.WidgetPackager.main(WidgetPackager.java:80)
[ERROR] Air Packager exception occurred

 

c.solve the issue by Airsdk installation for Smartphone Webworks package.
How to install airsdk-->a.extract into program files (x86).
 b.change My Computer\Properties\Advanced\Environment Variables\System Variables\
            Select New, enter adl in the variable name. and c:\Program Files\airsdk\bin\adl.exe
    adt and C:\Program Files\airsdk\bin\adt.exe
  c.Restart computer.
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5>bbwp "
C:\Users\test.zip" -o "C:\Users"
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating application archive
[INFO] Parsing config.xml
[WARNING] Failed to find a <feature> element
[INFO] Populating application source
[INFO] Compiling BlackBerry WebWorks application
[INFO] Generating output files
[WARNING] Attempt to make directory failed(C:\Users\StandardInstal
l)
[WARNING] Attempt to make directory failed(C:\Users\OTAInstall)
[ERROR] C:\Users\StandardInstall\test.cod (The system cannot fin
d the path specified)


d.After package Tablet Webworks, get jvm.dll issue.
Solve it by add javac path under
   a.change My Computer\Properties\Advanced\Environment Variables\System Variables\
   b.Insert javac path under "Path" ;C:\Program Files (x86)\Java\jdk1.6.0_32\bin
   c.Restart computer.

C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2
.2.0.5\bbwp>bbwp "C:\Users\Webworks\test.zip" -o "C:\Users"
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[WARNING] Failed to find a <feature> element
[INFO] Populating application source
[INFO] Compiling WebWorks application
Error loading: C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK
for TabletOS 2.2.0.5\jre\bin\client\jvm.dll
[INFO] Packaging the bar file
java.io.FileNotFoundException: C:\Users\Admin\AppData\Local\Temp\widgetGen.42142
87251338478809121.tmp\test.swf (The system cannot find the file specified)
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)
[ERROR] Air Packager exception occurred

 

-Fight with BB10
New Developer
Posts: 17
Registered: ‎11-04-2012
My Device: BB10
My Carrier: Nokia

Re: Signing Tablet application

I have the same problem and I didn't find the java version defined into the PATH variable as well

I add it and recomiple I got the same error!

c:\>javac -version

javac 1.7.0_09

c:\>cd C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for Tab
letOS 2.2.0.5\bbwp

C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2
.2.0.5\bbwp>bbwp C:\myapp\keepsmiling.zip -g yamosahel -buildId 1 -o C:\myapp\ou
tput
[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 loading: C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK
for TabletOS 2.2.0.5\jre\bin\client\jvm.dll
[INFO] Packaging the bar file
Exception in thread "main" java.lang.NullPointerException
at java.util.PropertyResourceBundle.handleGetObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getString(Unknown Source)
at net.rim.tumbler.log.Logger.logMessage(Logger.java:38)
at net.rim.tumbler.WidgetPackager.go(WidgetPackager.java:213)
at net.rim.tumbler.WidgetPackager.main(WidgetPackager.java:77)

C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2
.2.0.5\bbwp>