Renaming of Jad/Cod files without re-compilation

Hello

I'm about to publish an app through mobihand and the site requires that I provide different files for the trial version and the full version, even if my software includes everything in a version with the ability to unlock all the features with a key.

To also provide a free trial version, I need to provide the software with different names. But the extent of my Java knowledge will that is not so easy. Just rename the files didn't work (especially if you have multiple cod files) and recompile it seems that a lot of efforts. (I need to change my classname as well, no?)

Is there another, more convenient way to do so?

Thanks for your help!

a developer of rookie bb again

Check JADTool task tools Ant BB:

http://BB-Ant-tools.sourceforge.NET/docs#jadtool

You can rename your files to cod via the Ant script, after that who perform this task to update the jad file and its properties.

Tags: BlackBerry Developers

Similar Questions

  • Can we install COD files without user intervention

    Hello

    I have two questions

    (1) can I install COD speed without user intervention (for example: in a jsp page page I wil point to the jad file)

    and if they click on the jad file, it should automatically install without askin for any guest user)

    (2) after the installation of the cod file and when the user runs it will ask for the connection to the http site I mentioned in

    My midlet. It can be direct without the prompt of the user.

    He has not designed a how to bypass security, because that would be a big security problem.

    There is no default security settings that are applied to the newly installed application, and application permissions could be edited as well. If the device is not on BES permissions are changed by the user. You can look at the options > Advanced Options > Applications > Menu. By default, application has no permission to create the connection to the network. In newer operating system, you can ask the user to activate certain permissions using http://www.blackberry.com/developers/docs/4.3.0api/net/rim/device/api/applicationcontrol/Application...

  • Problems with CAP and multiple cod files

    Hello!

    I had a MIDlet that I'm trying to convert a cod file using the compiler CAP. The original jar file is 169 KB, maybe too big file a Cod. I use the following command:

    Import the "C:\Program Files (x 86) \Research 4.6.0\bin\rapc" = "C:\Program Files (x 86) \Research 4.6.0\lib\net_rim_api.jar" codename = xxx-midlet jad = yyy.jad yyy.jar

    The CAP program seems to work ok and produces the following 5 files:

    xxx.jar 18 kb, contains images, manifest etc.

    xxx. COD 147 KB

    xxx. CSO 1 KB

    xxx. Debug 127 KB

    XXX - 69 KB 1.debug

    Also, it changes my JAD file and adds the following:

    RIM-COD-Module-dependencies: net_rim_cldc
    RIM-COD-URL-1: xxx - 1.cod
    RIM-COD-SHA1-1: 52 83 e9 c7 6th a1 ad a6 5f bc 8 b 9 b 07 b1 04 53 49 ca 46 fd
    RIM-COD-size-1: 59208
    RIM-COD-Module-Name: xxx
    RIM-COD-size: 90108
    RIM-COD-creation-Time: 1231858243
    RIM-COD-URL: xxx.cod
    RIM-COD-SHA1: 2d 2 b 72 c5 a3 68 03 ed be 22 fa df 41 05 c0 0e 48 8 a 77 ec

    But it does not create a file xxx - 1.cod, or at least I can't. Of course it takes a... Looks like the xxx.cod file is too big also. This installation live does not work. Y at - it an option to indicate the CAP should create several files of cod? I cannot find a reference on CAP documentation, is there another way to create a cod to jad/jar file (s)?

    Erik

    Seems that CAP created a file of large cod with brothers and sisters inside.

    Rename the file zip cod.

    Unzip it. Remove this zip file.

    You have now all the cod files.

  • How to rename the JAD file to eclipse MIDlet name

    Hi, expert,

    at the present time, our product team asks me to change the product name of the name of one to the other, I changed the title in the properties of the eclipse project and thought that's it. Cod file name was still the same as before.

    Then I discovered that I was wrong. The name options-> list of applications is still the old name. Then I change the COD file name (the name of the JAD file is also modified with it) and thought that I would be ok this time.

    I was denied again. The name on the download of air link always displays the old name and found out that the JAD stll MIDlet-name file has the old name and browser would use this name. Options-> application list, it still shows the old name. So I have to change the name of the MIDlet-name for the new name. However, I couldn't find a way. on the descriptor xml project, there is a tag called MainMIDletName, I changed to the new name:

    However it does not seem to help as well. After research, I found this link, but it does not say exactly how do without changing the name of the project that I really don't want to do:
    http://supportforums.BlackBerry.com/T5/Java-development/how-to-rename-JAD-in-JDE-Eclipse-without-ren...

    I have a few choice here? Any help would be appreicated.

    Hello

    To have the "MIDlet-Name" of the renowned JAD property, you will need to rename the project. Output file names can be changed via the BlackBerry_App_Descriptor.xml > Build (tab) > name of the output file (field).

    Kind regards

  • Eclipse create .jad and .cod files

    According to the documentation I've seen, OTA installation from a Web site is to place the files application.jad and application.cod on a server to direct the BlackBerry device to this location.  My preliminary test indicate that it works as advertised.

    However, I find that Eclipse creates an application.jad file that references a request file - 1.cod, but at the same time only creates the file application.cod.  Of course, when the device will the url and inspects the .jad file, it tries to find the file application - 1.cod!

    What is causing this to happen and how I fix without manually open the .jad file and inspect everything I want to publish?

    Thank you

    Ouch!

    I looked at me directory and of course, the cod file was more than 64K.  If you tell me that once it is greater than 64K isn't really a cod file, but in fact a zip file?  To deploy, I need to decompress the file and place the actual cod files in my site url?

    I was skeptical, but it seems to be as you described.

    Thank you for sharing this tidbit.

  • How to make a jad file and cod file to a single file for hosting on the web server

    Hello

    I want to make the jad file and cod file is a single file, which must be installed in the blackberry.

    When I load the jad without cod file file, it loads the app

    but when I load the jad file cod file, it loads the application on the blackberry device.

    I only want a single file to be uplaoded to the server for the installation of the application.

    Help, please

    I want it to install the web server to the BlackBerry smartphone.

    Thanks and greetings

    Anthony singh

    This is not possible, that both jad and cod is necessary to install an OTA application. the jad file contains a description of the application, the cod is the real application.

  • Problems of the JAD and COD file

    I was testing a blackberry app and it installed without any problems. I made some changes to code today and he stopped same download to the device correctly. After some digging around in the .jad file, I noticed it's all suddenly you're looking for a brother COD (NomMonProjet - 1.cod) file although this cod file is not created when I build the project. Now, I can't get the app to install at all (it works well in the emulator).

    Any ideas as to why this started happening and how I can fix this problem?

    Sorry guys, tried to search the forums for this and found nothing. Problem was I didn't know what to look for. I finally got the app to download and got an error 907 invalid COD . A search on that quickly gave me my answer. I added an image that made the application to big - brother COD file creation and makes it impossible to install over the air.

  • How to explicitly sign .cod file and jad file available in the blackberry phonegap application OTAInstall folder.

    Hi all
    I developed a blackberry software, phonegap will OTAInstall folder that contains unsigned .cod and jad files, I want to give to this folder to the client so that it can make the .cod signature of the OTAInstall folder and install it in their device.

    Note- Customer don't want .cod signature on my side and I can't share my code for the client, I can only share files .cod unsigned file OTAInstall to them.

    Thank you all

    Hi there, when you build with the SDK WebWorks, if you omit the parameter g then the application must be created without his signature.

    Once you share the unsigned cod, the customer must have their own WebWorks SDK installed, as well as of the signature code may operate the SignatureTool.jar in the folder bin to sign actually unsigned cod files and keys.

  • Generated JAD file lists the strange COD files

    I use BB JDE 6.0.0. and it generates a JAD file for the project. The problem is that it lists the COD files, which are not used. I pasted the contents of the JAD file below. COD generated file is AstralEffects.cod, but there is no file AstralEffects - 1.cod or AstralEffects - 2.cod.

    How can I remove these COD files are not used in the JAD file? I tried to remove them manually, but then I got ' 907 invalid COD: impossible to import the ZIP file. I'm trying to find a way to change the JAD of BB JDE 6.0.0 file, but I can't find an option like that. So, how can I change the generated JAD file?

    Manifest-Version: 1.0
    MIDlet-Version: 2.2
    MIDlet-Jar-Size: 171299
    RIM-COD-URL-2: AstralEffects - 2.cod
    Microedition-Configuration: CLDC-1. 1
    MIDlet-Jar-URL: AstralEffects.jar
    RIM-COD-Module-dependencies: net_rim_cldc
    RIM-COD-SHA1-2: ed 81 41 47 32 BA 7f b7 9 d 6a e6 78 83 e9 ff 71 83 11 a9
    RIM-COD-URL-1: AstralEffects - 1.cod
    RIM-COD-SHA1-1: 04 25 03 50 FF e8 4 b d6 63 77 12 d8 f1 7f 67 60 85 6 9th 2f d
    RIM-COD-size-2: 42088
    RIM-MIDlet-flags-1: 0
    RIM-COD-size-1: 48192
    RIM-COD-Module-name: AstralEffects
    MIDlet-name: AstralEffects
    RIM-COD-size: 71800
    RIM-COD-creation-Time: 1291403520
    MIDlet-1: AstralEffects, AstralEffects.png, AstralEffects
    RIM-COD-URL: AstralEffects.cod
    RIM-COD-SHA1: 31 34 46 79 8 7f c2 d 2B f7 19 98 c0 f6 bb 03 c3 2 df c 78 c0
    Microedition-profile: MIDP-2. 0
    MIDlet-vendor: mobile visuals

    Once you rename the original to the extension ZIP and unzip, ther original COD there not more, right? You should deploy all of the files that I unzipped from the aggragate COD.

  • Jad file after update does cod file


    I am still unable to get the automatic function to generate the jad to work as once... but, I modified the jad to hand and the app seems to be download correctly, both for the simulators and devices.

    I removed the SHA1 attributes and entered the sizes of cod by hand, according to the amounts shown in winzip, when I extracted the COD files on the master file of the Cod.

    Thanks again for your help!

  • Cannot add properties of jad for the compatibility mode for the COD file metadata.

    Hi all.

    I need to disable the application that are installed compatibility mode using the ALX file. I read in an another messages it is possible to add custom file JAD directly properties in the COD file. I tried to create test projects using Blackberry JDE, Blackberry Eclipse plugin generation tools and use Eclipse with ant. Then I tried to add a JAD file for projects and by adding the following properties:

    RIM-TouchCompatibilityMode: false
    RIM-TouchCompatibilityMode-UserChangeable: true
    

    Also I tried specifying the properties of this:

    RIM-TouchCompatibilityMode: 0
    RIM-TouchCompatibilityMode-UserChangeable: 1
    

    But it seems that it does not help to automatically avoid compatibility mode for applications that are built using JDE4.2.1 or earlier. I ran the test on Storm 9530 camera with 5.0.0.32 8 preinstalled JDE. I also wipe my phone several times to avoid the capabilities that the compatibility mode settings is saved.

    In addition, before installing the application I also checked this jar file compatibility mode properties which was built contained in this manifesto.

    Please, anobody can advise which go bad. Or it seems that there is no possibility to implement the solution that are built with the JDE at first then 4.7 and are installed using the ALX file.

    I never could get this job.

    Sorry, don't know what the deal is.

  • Problem with the conversion of Midlet (jad/jar) cod file (Jasymca 2.0)

    BB Storm last official OS.

    There is this wonderful program called Jasymca 2.0 which is a combination of programs of mathematics MATLAB and MAXIMA of high-end (subset to fit) and written in J2ME as a MOPED. To see a demo of it, go to http://webuser.fh-furtwangen.de/~dersch/jasymca2/indexEN.html and click on demo on the left. It's quite impressive... able to make the symbolic math and math matrix among others. The ultimate calculator for a PDA... and the best I could find out there.

    The only problem is that it is written in J2ME as a MIDLET and the runtime is stored as a combination of jad/jar. Now, I tried the standard conversion using the CAP as follows...

    CAP import = "C:\Program Research In Motion\BlackBerry JDE 4.7.0\lib\net_rim_api.jar" code name is jasymca-midlet jad is Jasymca.jad Jasymca.jar

    It seems to work very well. There are a few warnings about unused variables, but that's fine. The last line was "No Errors".

    .. .and he left me with a file .cod 229K

    When I insert it in my blackberry through javaloader, it loads very well.

    However, when I look in my download directory I 2 files related to Jasymca and not running.

    I suspect that it is because the cod file is too big. Is there another step I can do for the cod of the loadable file?

    Any help is appreciated.

    Thank you

    -Donald

    It takes more time than I expected.

    There is a preprocessor directives in the source files and to leave JDE to understand these guidelines, I need to modify the jdp.

    I stopped the investigation

    But I will say that I found.

    icons and data files must be located in the default folder.

    If the root folder of the package is src\

    path of the icon should be: src\myicon.png

    for now the icons are located in the src\icons folder

    in this case the image files are not accessible from the BlackBerry App.

    The second: there are some files showed up as the symbol file name first.

    JDE does not add these files to the project.

    I think that the best way would be to contact the developer of Jasymca and talking to him about the Jasymca and porting for BlackBerry

  • Settting of fashion storm compat in .cod files jad

    Use these settings in the .jad file our application works correctly on the storm:

    RIM-TouchCompatibilityMode: false
    RIM-TouchCompatibilityMode-UserChangeable: true

    However, AppWorld only accepts the .cod files.  How can I get these settings

    my file generation .cod using the Eclipse plugin?

    Thank you.

    Yes, he does.

  • Is it possible to provide our db and files jad or cod file?

    Hi all

    Is it possible to provide our db as well as our app i.e. file file jad or COD files so that our application can retrieve data from the database or inserted into the db etc.?

    Thank you

    Sanath

    To create/display/change your can find a lot of customers, for example Sqlite Admnistrator, Sqliteman,...

  • JAD params of the reading of the JAD file that is changed after the cod file is built?

    Hello

    We have a requirement in which, you must change the jad file, after the cod file is generated.

    But when I try to do is not able to read the newly added params to MIDlet.getAppProperty() . He can read the jad attributes that were there in the jad file before creating the cod file.

    Example:

    existing JAD has "KeyA" whose value is "A." Now package for the project and generate the blah.cod file

    Add a parameter more "KeyNew" with the value "ValueNew.

    Print the source MIDlet.getAppProperty("KeyA") andMIDlet.getAppProperty("KeyNew")

    Step 1. Existing.jad

    KeyA: A.

    Step 2. Build the cod

    Step 3. Add another parameter to Existing.jad

    KeyA: A.

    KeyNew: ValueNew

    Step 4. Existing.jad of charge using javaloader.

    load Javaloader u Existing.jad

    Step 5. Run the application

    Actual output: it prints only a. and not ValueNew

    I read that this is possible in JDE 4.3 + and I'm working on JDE 5.0

    Help, please.

    ~ Joey

    Apparently it only works if we install the Jad with Javaloader file. Having an installation OTA of the Jad file works.

Maybe you are looking for