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.
Related
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
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 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.
Suppose I have a folder with many files. I want to have a .gz version of each file (not a tar.gz with all files). How do I do that with Ant? Ant's doesn't accept a list of files, only operates on one. So how do I repeat this for all files, with a certain extension, in a directory?
Please take a look at a this question.
I there any way that I can see the contents of a Blackberry COD file to check which classes are in there?
You can't.
You can unzip content of *.jar, not the *.cod.
Earlier you could use some Zip utility like 7Zip etc to see the contents in the jad, However I got error with the cod files generated by the newer versions of the JDE
Oh, I think we can view content of BB COD file. I use Total Commander to view content of archive file, such as ZIP, JAR or COD. It's OK.