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


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.


Reply
Highlighted
Contributor
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800
My Carrier: Airtel
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.

Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

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

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. ?

 

BlackBerry Development Advisor
Posts: 769
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Unable to build .bar file using phonegap example

I would use the latest SDK just because, why  not? Smiley Happy

 

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...

Contributor
Posts: 18
Registered: ‎05-02-2011
My Device: Torch 9800
My Carrier: Airtel

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. Smiley Happy