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
Contributor
aviraljain
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800
Accepted Solution

Unable to build .bar file using phonegap example

Hi,

I am trying to build sample BB10 webworks app using example provided in phonegap's blackberry folder.

I am following the exact steps provided in phongap's getting started guide.

 

When I run ant qnx build command in terminal i got follwing response.

 

 

[echo] Generated name: cordovaExample.bar

clean:

package-app:
[mkdir] Created dir: /Users/XYZ/Desktop/example/build/widget
[copy] Copying 25 files to /Users/XYZ/Desktop/example/build/widget
[copy] Copying 3 files to /Users/XYZ/Desktop/ABC/Downloads/RIM/Blackberry_Webworks_10/Framework/ext
[zip] Building zip: /Users/XYZ/Desktop/example/build/cordovaExample.zip

build:
[exec] [ERROR] Invalid command line argument "--loglevel"

 

 

I am getting .zip file in build folder instead of .bar file.

I am using:

Mac OS: 10.7.5

Phonegap(Cordova): 2.5

jdk: 7 Update 15

 

 

Please give your valuable suggestions if I am missing something.

 

Regards.

Please use plain text.
BlackBerry Development Advisor
bryanhiggins
Posts: 201
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3

Re: Unable to build .bar file using phonegap example

Hi,

 

Which version of the BB10 WebWorks SDK are you using?

 

 

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Please use plain text.
Contributor
aviraljain
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800

Re: Unable to build .bar file using phonegap example

I am using  BB10-WebWorks-SDK_1.0.4.5.

 

Should I try latest one availble which is BB10-WebWorks-SDK_1.0.4.11. ?

 

Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 620
Registered: ‎10-01-2009
My Device: Z10

Re: Unable to build .bar file using phonegap example

I would use the latest SDK just because, why  not? :smileyhappy:

 

As far as the process to get it up and running on BB10, take a look at these resources

 

Knowledge Base - http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Porting-your-existing-PhoneGap-a... 

 

Getting Started Guide - http://docs.phonegap.com/en/2.5.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%2...

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
Contributor
aviraljain
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800

Re: Unable to build .bar file using phonegap example

I replaced my older BB10 WebWorks with the latest available one and now everything is working perfectly fine.

Now able to build and load .bar file to simulator.

 

Thanks. :smileyhappy:

Please use plain text.