03-30-2011 11:21 PM
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.
Solved! Go to Solution.
03-30-2011 11:27 PM
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.
03-30-2011 11:33 PM
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."?
03-30-2011 11:42 PM
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?
03-30-2011 11:45 PM
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!
03-30-2011 11:51 PM
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.
03-31-2011 04:35 PM - edited 03-31-2011 04:46 PM
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!
03-31-2011 05:06 PM
Glad it worked for you. ![]()
03-31-2011 05:30 PM
02-20-2013 04:55 PM
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.