What is the right way to get the final .jad & .cod files ready for distribution?
Currently I use a very poor, manual approach:
Package project & sign
Open explorer, navigate to the deliverables folder
Rename .cod files to .zip & extract them
Manually add the correct .cod files to the correct .jad file
This is wrong, but it works. What is the right way to do this? thx
Consider JadTool from BlackBerry Ant Tools
Related
I was wondering if a share extension creates an .ipa file similarly to a regular target?
Thanks
No, it's packaged in your app's IPA and delivered to Apple as a single file with it (and everything else).
An IPA itself is a zip format file -- if you make a copy of one and rename it to .zip, you can unzip it and look at what it has.
At the top level it has a Payload folder with a .app file in it. That file is a package (you can right-click and show contents). In there, you'll find a PlugIns folder, which will have *.appex files. These are what your extension targets build.
So, the IPA's Payload/NAME.app/PlugIns/*.appex packages are the extensions.
I am trying to upload a BB app to its App World. Everything I read makes a reference to upload a COD file or some COD files.
When you get to this point when submiting the app, it gives two choices to do the upload. One is file by file and the other is to upload a .ZIP file.
My problem is that when I sign my app, it generates a JAR file where are all my images and classes and .COD files and .CRB files (languages RRC files).
What I do is to convert this JAR to ZIP file and upload the app .ZIP way but it gives me an error because of the name of CRB files that now turns to have some strange characters. They come from a resources_en.rrc to a resources_Ășen.crb
I am doing something wrong but I can't figure it out. What is the right way to do this or what am I doing wrong?
Thanks in advance!
For Eclipse:
The COD is in your workspace\ProjectName\deliverables\Standard\\YourProject.cod
All you need to upload the the App World is this COD file, don't need to do any converting of a JAR. Do, however, make sure you have signed the file by (in Eclipse) right clicking on the project -> BlackBerry -> Sign with Signature Tool
The COD file is produced by RIM's compiler (rapc) and is the file that is signed. If you are using JDE for development it should be in the top level directory of your workspace. I'm not familiar with where Eclipse puts it.
I have a JAD File which I want to run on my simulator. So I do these things to download that JAD file on my simulator ...
I have changed the SD card and browse that project where the JAD file is kept.
Now when I browse that SD card I find there is a JAD file. When I click on it I got one download button and one cancel button. On clicking the download button it gives me information like "downloading failed".
When I click on the details button it says "invalid cod file not found". What should I do?
The .jad file does not contain any of your actual code. It is actually a text file, you can open it in a text editor and read it. The .jad file just contains pointers to your .code file(s). So, you need to make sure that your .cod file(s) are available in the same folder as the .jad file.
Build your app, and generate a .cod file. Then rename the .cod files to .zip file and then extract. Then you will get a set of .cod files. You need to have all of them and they should be signed.
You cannot download the .cod files to an SD card and install like Java ME. You need to either desktop software or your JDE or you need to deploy all of your .cod files along with your JAD file in some server. Then access the JAD file link from a browser. Here we go .. it's done.
Got a .jad and a bunch of .cod files. Can I view the contents of the .cod files? Thanks
.cod files are basically .jar files that have been processed through RIM's compilation tool chain. Additionally RIM tools strip some information from the .jar files before cod-ifying them and if the size is too big, it splits and zips the pieces. So if you have a bunch of .cod files for the same .jad file you should first try unzipping them using a standard zip program then join them using some concat utility and finally try using a .jar file decompiler to see if you can hack the byte code. That is pretty much your best bet.
I am facing a peculiar problem when trying to build and sign my blackberry app with signing keys .The problem is its creating 2 debug files(sibling files) and also showing sibling .cod files when i am trying to sign the application with the keys but in the final deliverables folder there is only one .cod file .
However , earlier it was running fine and there was only one .debug and .cod file .
I cant understand what is the actually problem.
Any help or idea will be highly appreciated.
Thanks a lot in advance.
Blackberry creates multiple .cod file when the .cod file size is more than 64 kb. In final folder what you are looking into may be the \deliverables\Standard\ [version no.] folder. There you can find a single .cod file. Actually this is not a .cod file. This is a zip file. Just rename to .ZIP. You can see multiple .cod files inside that. To publish to a web site you need multiple cod files and .jad file. But for blackberry app world submission that single .cod file is enough.