BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   installing alx file on device (http://www.blackberryforums.com/showthread.php?t=222127)

neha.chaudhary 03-17-2010 02:22 AM

installing alx file on device
 
hi!

can any one tell me plz how to install .alx file on device using Servlet code(means programmatically).
its urgent.plz help me.

thnks

ohad_129 03-17-2010 05:54 AM

Wirelessly posted

I don't know what you mean progrematicly
But alx you upload by app loader or desktop manager

neha.chaudhary 03-17-2010 06:24 AM

Reply
 
hi!
thnks 4 ur reply.
actually i want to install blackberry application say HelloWorld on my device using servlet code not using JAVA Loader
thnks

neha.chaudhary 03-23-2010 12:01 AM

hi!

can any one plz tell me which file (COD or JAD) is to transfer on device for installing Blackberry application using OTA?

thnks

ohad_129 03-23-2010 12:48 AM

Wirelessly posted

Both jad contain cods

neha.chaudhary 03-23-2010 01:18 AM

Reply
 
hi!
thnks for ur reply ,
but when i try to install jad file,on device follwing exception generates:

net.rim.protocol.http.content.transfer.HttpContent TranscoderException:
invalid value for RIM-COD-selection header:null

could u plz tell me why it is generating.

thnks

ohad_129 03-23-2010 01:42 AM

Quote:

Originally Posted by neha.chaudhary (Post 1583587)
hi!
thnks for ur reply ,
but when i try to install jad file,on device follwing exception generates:

net.rim.protocol.http.content.transfer.HttpContent TranscoderException:
invalid value for RIM-COD-selection header:null

could u plz tell me why it is generating.

thnks

try to uploaded by bbsak

neha.chaudhary 03-23-2010 02:00 AM

Reply
 
hi!

actually i hve to install it using tomcat server(OTA).

thnks

neha.chaudhary 03-23-2010 02:06 AM

Reply
 
hi!

sorry its working now,but the prob is when i try to install jad file that contain only one cod file,its working fine
but if app contain more thn one cod file thn it dont and showing same exception.
thnks

Dougsg38p 03-23-2010 07:42 AM

If the app contains more than one COD file, then you have to extract the individual COD files mut be extracted from the aggragate COD file.

Rename the COD file to the ZIP extension then uzip the contents. You should get application-1.COD, application-2.COD, etc.

These files (not the original aggregate COD file) should be placed on your deployment server along with the JAD file.

neha.chaudhary 03-25-2010 09:14 AM

Reply
 
hi,
thnks for ur help,its working now using OTA.
but when i try to install app using servlet code Exception occurs:invalid manifest or application descriptor.m using following code:

File f1 = new File(path);
res.setContentType("text/vnd.sun.j2me.app-descriptor");
res.addHeader("content-Disposition", "attachment;filename=abc.jad");
int length = (int) f1.length();
byte[] bbuf1 = new byte[length];
DataInputStream in = new DataInputStream(new FileInputStream(f1));
while ((in != null) && ((length = in.read(bbuf1)) != -1)) {
op.write(bbuf1, 0, length);
}

so could u plz tell me why it is occuring.

thnks

Dougsg38p 03-25-2010 10:19 AM

See this knowledgebase article:

Livelink - Redirection


All times are GMT -5. The time now is 11:32 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.