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

Native Development

Reply
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry
Accepted Solution

Executable File Extension of BB10

Whats the executable file's extension of a BB10 app? And in the project in which folder it resides? Is it the one in the Binaries folder? 

Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Executable File Extension of BB10

The one that is deployed to the device is .bar and you specify the folder to put it in when you export a build
Like all of my posts
Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: Executable File Extension of BB10

But when I build and run my project no .bar file is generated.  Project View After Build 

Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: Executable File Extension of BB10

This is the picture after the build http://prntscr.com/lpkfl
Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Executable File Extension of BB10

Just building the app doesnt cause a bar to be created, you will have to run the deploy, either debug configuration, run configuration or via the bar-descriptor.xml "Export Release Build" functionality. Then it packages up the .so file
Like all of my posts
Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: Executable File Extension of BB10

I ran the file through project's right click options-> run as-> Blackberry C/C++ Application. but still no .bar file generated and no bar package folder either!
Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Executable File Extension of BB10

Clean project then build it. Open bar-descriptor and in top right corner there are 3 buttons. Click the second one to launch your app. It will create .bar package.
Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: Executable File Extension of BB10

Ok I solved it. The problem was : at the bar-descriptor.xml under the 'advanced' option "current SDK target" was selected . I changed it to Blackberry OS 10.0.9.1101. and then I ran the project and the bar file was created. Thanks for the replies :smileyhappy:
Please use plain text.
Developer
calicratis19
Posts: 163
Registered: ‎12-06-2012
My Device: Z10, Q10
My Carrier: BlackBerry

Re: Executable File Extension of BB10

Right click on the project. Run As->Run Configuration->Upload. In 'Deployment' option choose "Package applicatoin Bar file, But do not upload". It will create bar file but won't run the application. You can then change the configuration again to run it.
Please use plain text.