10-29-2010 08:24 AM
I have developed a solution that have a library project dependency.
So in this moment i have two projects: MyApp and MyLib, both generate with your own .jad and .cod files, i read documentation that recommends to generate a unified .jad in this case, using updatejad tool.
Very well, i do it, so now i have one .jad file with two .cod files.
I have a server that i put these files, .jad and .cod´s and according the documentation i have to configure the mime types correctly, so i do it.
I have the .jad value of RIM-COD-URL: http://myDomain/MyApp.cod . If i access from a desktop browser i download correctly the .cod file.
It´s my target point,,, here when i access the url via blackberry browser, return the error 500, with "ZipException: invalid entry CRC" ...
Someone can help me?
Best regard, Rampelotti.
11-03-2010 01:42 PM
You need to open the .JAD file from within the BlackBerry Browser, not the COD file itself. Is that what you are doing? At what point do you see the error?
11-05-2010 06:34 AM
Thanks for reply!
Yes i do it! but after load the .jad file i press the button download and when install the first .cod appear the error related.
But this error was resolved.
Now i have another problem, my .jad file have two .cod referenced, a lib and the application, but does not install lib.cod, only app.cod, when i run this, my application does not work correctly because miss lib project.
Can you have any idea here?
11-08-2010 11:57 AM
Note if you have an auto-start application, the library will need to be listed first so that it is available when the application COD file is installed and tries to run.
Can you post your JAD file?
11-09-2010 11:25 AM
Thank for reply .
It´s my .jad content:
Manifest-Version: 1.0 MIDlet-Name: MyApp Created-By: 1.5.0_22 (Sun Microsystems Inc.) MIDlet-1: MyApp,,startup RIM-MIDlet-Flags-1: 3 RIM-MIDlet-Flags-2: 0 MIDlet-2: MyApp,../MyApp/src/com/test/app/view/img/app_ico.p
ng, MicroEdition-Configuration: CLDC-1.1 RIM-MIDlet-Icon-2-1: ../MyApp/src/com/test/app/view/img/app_ico_over.pn g,focused MicroEdition-Profile: MIDP-2.0 MIDlet-Description: test RIM-MIDlet-Icon-Count-2: 1 MIDlet-Jar-Size: 4212244 MIDlet-Jar-URL: MyApp.jar RIM-COD-Module-Name: MyApp RIM-COD-Module-Dependencies: net_rim_cldc RIM-MIDlet-NameResourceId-1: 0 RIM-COD-Creation-Time: 1218812329 RIM-COD-URL: MyLib.cod RIM-COD-Size: 365306 RIM-COD-URL: MyApp.cod RIM-COD-Size: 4627346
I´m wait for response.
11-10-2010 09:30 AM
You can't have duplicate properties in your JAD file. So for example instead of:
You should have:
And then increment the -# for every additional COD file.
11-12-2010 08:50 AM
Thanks for reply!
But my problem was not fixed. I changed my .jad file and i included the correctly information, but it only install the app and it does not install the lib.
I think my problem is with .jar files, i changed the .jad file arguments only including the app.jar url, in the developers document has only this information.
Do you have any other suggestions?
11-15-2010 02:56 PM
I'm not sure what you mean here. Are you trying to deploy using only JAR files and not COD files? The JAR files are not required if you are using COD files.
11-16-2010 05:32 AM
Thanks for reply!
I use .jad file that appoint to .cod files, but internally of .jad file has a jar url that appoint to jar file, but how you appoint here, i do not need to use .jar files and i do one more test with this.
So my attempts failed, i don´t understand why if i did all correctly, when i access the url appear the screen to download and install but only install the app, my lib is ignored.
Do you have any suggestions?
11-16-2010 10:57 AM
Can you post the contents of your updated JAD file?