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

Adobe AIR Development

Reply
Contributor
a2_sJ
Posts: 16
Registered: ‎03-30-2011
My Device: non-Blackberry user/Developer
Accepted Solution

Deploying Final App with Command Line Question

Alright so I have my finished app.

on a folder in my desktop called "CODBOUG".

 

I've been trying so many different methods to run the app and finalize test it on the simulator with the command line. But this is just too much. So I need your help community!

 

I've tried:

blackberry-deploy -installApp -package CallofDutyBlackOpsUltimateG

uide.bar -device 192.168.18.128

 

I am a little lost with using the command line, if someone would guide me along the right path.

I am on windows btw.

 

Thank You.

 

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Deploying Final App with Command Line Question

I'll assume you either have blackberry-deploy in your PATH, or at least know how to invoke it properly.

 

The command line you showed is almost correct, assuming that's the IP address your simulator shows when you click on the "hammer" icon in the status bar (which means you've got development mode enabled).

 

The only thing you're missing is "-password YOURPASSWORD".  Also note that if you add "-launchApp" it will launch it as well.

 

Also, be aware of a simulator bug where the icon may not appear after installation, unless you do a bottom-swipe (or some other things) to "jiggle" the Navigator.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Contributor
a2_sJ
Posts: 16
Registered: ‎03-30-2011
My Device: non-Blackberry user/Developer

Re: Deploying Final App with Command Line Question

Alright I did in fact forget about the password thing! So thanks for that.

But you could just clarify what you mean when you talk about

"blackberry-deploy in your PATH, or at least know how to invoke it properly."?

 

 

Developer
thesmileman
Posts: 345
Registered: ‎03-13-2011
My Device: Playbook

Re: Deploying Final App with Command Line Question

 


a2_sJ wrote:

 

But you could just clarify what you mean when you talk about

"blackberry-deploy in your PATH, or at least know how to invoke it properly."?

 

 


 

He is talking about when you are at the command line you either have to actually be in the current directory of the folder containing the blackberry-deploy.exe file or type in its absolute path or your "PATH" environment variable contain the folder where the blackberry-deploy.exe file is. Have you checked the numerous guides about this on the forum?

 

Contributor
a2_sJ
Posts: 16
Registered: ‎03-30-2011
My Device: non-Blackberry user/Developer

Re: Deploying Final App with Command Line Question

I see what your saying,

and yes I adequately used the search feature.

If you could link to me some guides that maybe I hadn't come across?

I'd greatly appreciate it!

 

 

Developer
berryawesome
Posts: 54
Registered: ‎12-22-2010
My Device: Not Specified

Re: Deploying Final App with Command Line Question

When you run a command, Windows will search in a series of directories for that program in order to execute it. This list of directories is stored in what's called an environment variable. You must add the path to the bin directory ( i.e. C:\Program Files (x86)\Adobe\Adobe Flash Builder Burrito\sdks\blackberry-tablet-sdk-0.9.3\bin ) of the sdk to this variable. 

 

You can access the path variable by right-clicking My Computer > Properties. Select the Advanced Tab and click on Env. Variables.

 

Under the System Variables, look for PATH and edit it. Add the path to the bin directory of the sdk (make sure there's a semi-colon separating the directories).

 

Open a command line window in the directory where your .bar file is. When you execute the command, Windows will look for blackberry-deploy and will find it in the directory you added to your PATH variable thus executing it.

Contributor
a2_sJ
Posts: 16
Registered: ‎03-30-2011
My Device: non-Blackberry user/Developer

Re: Deploying Final App with Command Line Question

[ Edited ]

Alright so I added the path to the Environmental Variables.

Then I opened a command prompt from that exact .BAR file directory.

 

and I typed in:

 

blackberry-deploy -password *******  -installApp
-package CallofDutyBlackOpsUltimateGuide.bar -device 192.168.18.128

 

But the command line gave me this as an error:

 

'java' is not recognized as an internal or external command,
operable program or batch file.

 

----------------------------------------------------------------------

 

Never mind! I got it to work, I had to add java's bin directory also to environmental paths!

 

Thank you!

Developer
berryawesome
Posts: 54
Registered: ‎12-22-2010
My Device: Not Specified

Re: Deploying Final App with Command Line Question

Glad it worked for you. :smileyhappy:

Developer
Brandon_Appetizer
Posts: 146
Registered: ‎03-27-2011
My Device: Blackberry Playbook

Re: Deploying Final App with Command Line Question

And, you learned a valuable lesson about your PATH environment variable. A lession which is sure to continue giving until the end of time...
----------------------------------------
If this post solved your problem, please click the 'Accept as Solution' button.
If you found this post useful, please provide a Kudo. Thanks.

Approved Apps: Celestial Slingshot
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.

Re: Deploying Final App with Command Line Question

 

java.exe needs to work under command prompt.

If not work, add java folder path under environment variables, and re open command prompt and execute java.exe again.

 

Solved for me.

 

-Fight with BB10