Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 11-23-2009, 05:33 AM
CrackBerry Addict
Device(s): 9780 and Playbook
Carrier: Orange
 
Location: Up North...UK
Join Date: Sep 2008
Posts: 601
Likes Received: 8
Thanked 2 Times in 2 Posts
Default Java IDEs and COD file versions

I have been exploring the Java development tools, primarily using the new downloads with latest Eclipse and the JDE plugin. I have a sample application which works fine in a 4.5 simulator, I uploaded the cod, jad jad jar files to a webserver and tried an OTA install on my 8900 4.6 device by specifiing the jad file. After the download I receive a "Download Failed" error. Clicking details tells me "907 Invalid COD".

Any ideas what I am doing wrong?

I read some postings that implied I needed a different version of the development environment due to changes in the cod file format, is that true? Or do I need to build this against a 4.6 simulator?
__________________
Personal website and blog | Flickr photostream
We are what we repeatedly do. Excellence, therefore, is not an act but a habit - Aristotle
Reply With Quote Tip this Post
  #2  
Old 11-25-2009, 03:38 PM
CrackBerry Abuser
Device(s): HTC Thunderbolt / BlackBerry PlayBook 16GB
Carrier: Verizon Wireless
 
Location: Miami, FL
Join Date: Mar 2009
Posts: 316
Likes Received: 1
Thanked 5 Times in 5 Posts
Default

There is a limit on the size of an individual cod file for OTA downloads. If the cod file the jad is pointing to is too large (I'm not sure but I think the limit is 64k, anyway it's not important) then it will give a 907 error.

Luckily it's easy to fix this. When Eclipse (or more accurately, the rapc utility) is generating the cod file it actually splits them up into 64k chunks, then sticks them in a zip file with a cod extension. Rename the cod file to a zip file and open it in WinRAR and you'll see that inside it contains multiple files (MyApp.cod, MyApp-1.cod, MyApp-2.cod, MyApp-3.cod, etc, depending on the size of your app).

All you have to do is extract these files and upload the split chunks along with the jad file, and that's it. So on your server you should have:
MyApp.jad
MyApp.cod
MyApp-1.cod
MyApp-2.cod

Hope this helps.
__________________
Love reading manga? Got a BlackBerry? Check out PocketManga, the free manga reader for BlackBerry, PlayBook, and Android!

Reply With Quote Tip this Post
    Thread Author   #3  
Old 11-26-2009, 08:44 AM
CrackBerry Addict
Device(s): 9780 and Playbook
Carrier: Orange
 
Location: Up North...UK
Join Date: Sep 2008
Posts: 601
Likes Received: 8
Thanked 2 Times in 2 Posts
Default

Thanks Adiamo - I will give it a try :-)
__________________
Personal website and blog | Flickr photostream
We are what we repeatedly do. Excellence, therefore, is not an act but a habit - Aristotle
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   Java IDEs and COD file versions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes