03-08-2010 02:12 PM
I develop applications for Blackberry devices and I always built the .cod, .jad, .alx and .jar. They work fine if I pass the application using the Desktop Manager. But I don't know why I can't download them by GPRS. My company has a GPRS server and we can download .jad and .jar files to other devices like nokia, sonyericsson, motorola, etc.
I tried using .jad and .cod file to download application and I get an error "Invalid COD: Unable to import ZIP file". I tried using just .jad and .jar and I get the error on the subject of this post "Invalid JAR: bad local file header". I tried this on at least 5 different applications and they all give me the same error.
I really need to use only the .jar and .jad file to install the application, because some of our clients only accepts these files. Is it possible to install an application only with .jar and .jad??
I already read this knowledge base article:
I couldn't find a solution there, and I checked all the topics.
I tried downloading the application on BlackBerry Bold 9000 with v188.8.131.52 (platform 184.108.40.206) and also tried on BlackBerry Curve 8520 v220.127.116.112 (platform 18.104.22.168). I tried building the application with JDE v4.6 and v4.0. None of this worked.
Can anyone help me with this problem?
Thanks in advance.
03-08-2010 04:40 PM
You need to use the JAD + CODs method. The COD file generated by the JDE needs to be unzipped and the unzipped (COD) files and the JAD file should be made available for download.
03-09-2010 07:01 AM - edited 03-09-2010 08:56 AM
The problem is I really need to use only .JAR and .JAD. I tried with smaller applications and I managed to install them fine. The first one I tried, the .JAR had 3KB. The second one, it had 93KB. They both downloaded and intalled fine.
I tried what you said, unzipping the "master" .COD and placing all unzipped cods with the .JAD. It worked fine too. But I really need to manage doing this only with .JAR and .JAD. It is possible, isn't it?
Update: I tried now with an application of 284KB and it worked fine too. It seems to have problems with applications bigger than 300KB. I'll continue to increase the size to find a maximum.