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
New Contributor
Posts: 2
Registered: ‎02-09-2011
My Device: Not Specified

Command Line Death

I can neither install or remove any apps using the standard methods.

(I was able to install using a .zip file and html with a config.xml and bbwp like sketchpad but got the ERROR a network error has occurred on an app with no script.)

 

-package -install etc and -depoly -uninstall both look the same when I ctrl Break the .bat file

 

Maybe the last line holds a clue?? "No shared spaces configured."

 

 

 

C:\Users\My User Name\Desktop\translatorApp>blackberry-deploy -uninstallApp Tr
anslatorBB.bar -device 192.168.136.129
Error: Unknown argument TranslatorBB.bar
2011-02-09 01:35:21
Full thread dump Java HotSpot(TM) Client VM (16.3-b01 mixed mode):

"Low Memory Detector" daemon prio=6 tid=0x020c1000 nid=0x1544 runnable [0x000000
00]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x020bc400 nid=0x46c waiting on condition [
0x00000000]
   java.lang.Thread.State: RUNNABLE

"Attach Listener" daemon prio=10 tid=0x020b9000 nid=0x1220 runnable [0x00000000]

   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x020b6000 nid=0x1724 waiting on conditio
n [0x00000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=0x02089800 nid=0xeb4 in Object.wait() [0x284ff000]

   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x04170b18> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        - locked <0x04170b18> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

"Reference Handler" daemon prio=10 tid=0x02085000 nid=0x14e8 in Object.wait() [0
x2846f000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x04170a20> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:485)
        at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
        - locked <0x04170a20> (a java.lang.ref.Reference$Lock)

"main" prio=6 tid=0x00769400 nid=0x1478 runnable [0x003cf000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.Runtime.exit(Unknown Source)
        at java.lang.System.exit(Unknown Source)
        at com.qnx.bbt.deploy.Deploy.printFatalError(Deploy.java:506)
        at com.qnx.bbt.deploy.Deploy.main(Deploy.java:114)

"VM Thread" prio=10 tid=0x02082400 nid=0x40c runnable

"VM Periodic Task Thread" prio=10 tid=0x020d3400 nid=0x15fc waiting on condition


JNI global references: 690

Heap
 def new generation   total 4928K, used 950K [0x04170000, 0x046c0000, 0x0ec10000
)
  eden space 4416K,  21% used [0x04170000, 0x0425db88, 0x045c0000)
  from space 512K,   0% used [0x045c0000, 0x045c0000, 0x04640000)
  to   space 512K,   0% used [0x04640000, 0x04640000, 0x046c0000)
 tenured generation   total 10944K, used 0K [0x0ec10000, 0x0f6c0000, 0x24170000)

   the space 10944K,   0% used [0x0ec10000, 0x0ec10000, 0x0ec10200, 0x0f6c0000)
 compacting perm gen  total 12288K, used 1897K [0x24170000, 0x24d70000, 0x281700
00)
   the space 12288K,  15% used [0x24170000, 0x2434a5e8, 0x2434a600, 0x24d70000)
No shared spaces configured.

Terminate batch job (Y/N)?

Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: Command Line Death

hey,

 

i think you are working with the webworks SDK if im not mistaken. so this may / may not be the same approach. but since in the end you are using a bar file, its probably the same syntax.

 

you are missing a few arguments from your uninstall command like the -package argument. below is how you would uninstall an application:

 

 

blackberry-deploy -uninstallApp -package MyApplication.bar -device 172.16.176.130

 

 

and to install, its relatively the same way:

 

 

blackberry-deploy -installApp -package MyApplication.bar -device 172.16.176.130

 

hope that clears a few things up. good luck!

 

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Command Line Death

Don't forget you'll need to add the "-password xxx" argument.


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!
Highlighted
New Contributor
Posts: 2
Registered: ‎02-09-2011
My Device: Not Specified

Re: Command Line Death

No that didn't help, I was afraid it wouldnt because I copied all of my code, that doesnt work, right from the getting started area.

 

 

Oddly enough, the only code I can get to work, doesn't come from this site at all...

 

I can only get the HTML JS version to work. I can not get any of the suggested commands to work. Is there a way to package flash from a zip file? Like JS?

 

 

 

EXIT /B

//FLASH PACKAGE AND DEPLOY


cd "c:\Users\My User Name\Desktop\translatorApp\"

blackberry-airpackager -packageApp TranslatorBB.bar -installApp -launchApp TranslatorBB.swf TranslatorBB-app.xml blackberry-tablet.xml icon.png -device 192.168.136.129 -password MyPassword

pause



Exit /b


//HTML JS PACKAGE AND DEPLOY Requires config.xml


cd "C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp"


bbwp "c:\Users\My User Name\Desktop\translatorApp\TranslatorBB.zip"


cd blackberry-tablet-sdk\bin\

blackberry-deploy -password MyPassword -installApp -device 192.168.136.129 -package "c:\users\My User Name\Desktop\translatorApp\bin\TranslatorBB.bar"


EXIT /b


//Uninstall


cd "c:\Users\My User Name\Desktop\translatorApp\"


blackberry-deploy -uninstallApp TranslatorBB.bar -device 192.168.136.129

exit /b

//Failed suggestions
cd "c:\Users\My User Name\Desktop\translatorApp\"

blackberry-airpackager -packageApp TranslatorBB.bar -C c:\Users\My User Name\Desktop\translatorApp\ -installApp -launchApp TranslatorBB.swf TranslatorBB-app.xml blackberry-tablet.xml icon.png -device 192.168.136.129 -password MyPassword
blackberry-deploy -installApp -package helloWorld.bar -device 192.168.136.129 -password MyPassword
blackberry-deploy -uninstallApp -package TranslatorBB.bar -device 192.168.136.129