.cod file is not proceed with the installation correctly (programmatically)

Hi BbExperts,

I took a .cod as a resource file in my application and wants to install this .cod programmatically.

My .cod file size is 429266 bytes, which is why I couldn't install it directly coz of size so I used the OTA (brothers and sisters of the main .cod) file in a table and install them one by one, by using CodeModuleManager.

I post here my sample application:

String [] codArr = {"" / MainApp.cod "," / MainApp - 1.cod ', ' / MainApp - 2.cod "," / MainApp - 3.cod "," / MainApp - 4.cod "," / MainApp - 5.cod ""};

for (inti = 0; i)< codarr.length;="" i++)="">

try {

byte [] cod is IOUtilities.streamToBytes (getClass ().getResourceAsStream(codArr[i]));.

create new module

int newHandle = CodeModuleManager.createNewModule (cod.length, cod, cod.length);

install the module

   if (newHandle! = 0) {

int savecode = CodeModuleManager.saveNewModule (newHandle, true);

if (savecode is CodeModuleManager.CMM_OK_MODULE_OVERWRITTEN)

System.out.println ("operation completed successfully");

}catch(IOException e) {}

e.printStackTrace ();

}

It is installed but not able to run it.

Is this approach is fair, or should I try another approach.

Guidance in this regard will be highly appreciated.

Thanks in advance...

Advertisement

try to install the last cod first

Tags: BlackBerry Developers

Similar Questions

  • do not proceed with the installation even after restart of firefox add-ons

    Add-ons - do not proceed with the installation even after restarting firefox, I deleted the files of 3 extensions (several times) in the other suggestions and rebooted. Still don't work yet saying will be installed when you restart.

    This has happened

    Each time Firefox opened

    == after update to 3.5 and continued to 3.6.3

    Hey even once, I did a complete uninstall and reinstall Firefox and it fixed the problem for me.

  • I can not proceed with the installation of EL Capitan after downloaded because my same unaccepted Apple ID if the correct password overlay

    Salvation;

    I tried to upgrade my macbook pro OS Yosemite to El Capitan, but I can not proceed with the installation of EL Capitan after downloaded because my ID Administration Apple not accepted even if correct password entry.

    By navigating through ' assistance from Apple is in charge to retrieve the Apple ID, I deleted the keychain, now the problem is I can't add the new keychain.

    Please help as I am now hung the message not found "Login" keychain... then reappear.

    Thank you

    Mel

    Okay, so you didn't get very far in the installation.

    Here's how to reset a forgotten password.

    Do you have a backup before the upgrade, such as a time Machine backup?   (Keychain is not containing the administrative password, unfortunately.)   You remove the login keychain, all stored passwords in Safari and in fact be lost.)   If you have, I would recover the set of connection from there.

    If you don't have a current backup, it's the first think you get.

    There could be a problem with the disk or of protection structure, or with the disc itself.    Creating a new keychain cannot be blocked, short error permissions or a drive problem.    Disk utility and check the drive and see if there is something to do.   (Unfortunately, some of these steps require an administrative password.)   You can try the repairs or a backup to disk by booting from the recovery partition - that won't require no administrative privileges - and attempt a repair or recovery from here, or save the entire drive disk external work.

    You have another Mac around, where certain tools can be generated and can then be used here?

  • my updates are not proceed with the installation even if it is powered. I've had a wndows XP SP2

    my updates are not proceed with the installation even if it is powered. I've had a wndows XP SP2

    my updates are not proceed with the installation even if it is powered. I've had a wndows XP SP2

    If you mean that Windows updates are not proceed with the installation, it is because the support of Windows XP Service Pack 2 ended on July 13, 2010, so no updates were available for this purpose since then.

    http://Windows.Microsoft.com/en-us/Windows/help/end-support

    To resolve this problem, you MUST upgrade to Windows XP Service Pack 3, which is covered and a link procided further to the bottom of the page at the link above.

    Rob

  • Adobe Flash Player Firefox Add-on does not proceed with the installation of OSX

    Hello

    I am facing a problem during the installation of the latest version of Adobe Flash Player Firefox Add-on on my macbook pro. The download bar stops at 30%.

    Please let me know how I can solve this problem.

    Thank you

    Vishal

    Screen Shot 2015-03-08 at 9.55.05 pm.png

    Screen Shot 2015-03-08 at 9.54.42 pm.png

    Same question; same answer: http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_osx.dmg

  • During the installation of Microsoft Flight Simulator 2004, the following error occurs: the version of this file is not compatible with the version of Windows you are using.

    Former title: Microsoft Flight Simulator will not install on Windows 7

    I have Windows 7 Home Premium 64-bit.  I try to install MFS 2004.  The first 3 discs work fine, but when I insert disk 4 to complete the installation, I get the following error message:

    "The version of this file is not compatible with the version of Windows you are using.  Check your computer's system information to see if yo need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. »

    I have a Dell Studio 1558

    Intel i5 - 520 M

    ATI Mobility Radeon HD 5470 graphics card

    8 GB RAM DDR3

    What can I do?

    Hello

    1. which edition of Windows are you using? Is - this edition is 32-bit or 64-bit?
     
     
    Given that the game is compatible with Windows 7, I suspect that the conflict can be 32-bit or 64-bit architecture.
    The link below shows the compatibility of this game with Windows 7.
     
     
    Method 1.
    We must ensure that the edition of the game must correspond with the operating system.
    If you use 64-bit in this game, you need the 64-bit Windows to install it.
    Method 2.
    If the above information matching I you recommend to start the computer in clean condition and then try to install the game.
    See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The MTP drivers not to proceed with the installation for my Samsung Galaxy S2

    The MTP drivers not to proceed with the installation for my Samsung Galaxy S2. I'm not able to use Kies for this reason.

    The MTP drivers not to proceed with the installation for my Samsung Galaxy S2. I'm not able to use Kies for this reason.

    It is more a question that you should study from the other end (Samsung/Android) to this end (Windows).  Hardware and software support for any device always has (probably always will be) from the manufacturer of the product.  They did, they decide what software/drivers that they provide and how they provide.

    For most of the devices like this - just use it as a USB hard drive works well.  ;-)

    http://androidforums.com/Samsung-Galaxy-S2-international/476128-how-do-i-sync-my-Samsung-Galaxy-S2-my-computer.html

    http://samsunggalaxysforums.com/showthread.php/3468-connecting-to-Kies-MTP-USB-driver-failure

  • HP Deskjet 3325 color inkjet printer not to proceed with the installation of premium window 7

    Mr President.

    HP Deskjet 3325 color inkjet printer not to proceed with the installation of premium window 7 installed hp laptop hp pavilion dv4. Please send me the solution to my email address * address email is removed from the privacy *.
    With respect,
    Tonia CENIA

    http://h10025.www1.HP.com/ewfrf/WC/document?docname=c01796821&CC=UK&DLC=en&LC=en&os=4062&Product=82029&sw_lang=

  • Firefox worked, today has not started with the error the version of this file is not compatible with the version of windows you are using.

    Computer is Windows 7 Ultimate 64 bit. Firefox has work fine for over a year on this computer. Nothing has been changed or updated updated except Windows update indicates that it installed updates on August 19. I had computer week before because only out of town, back entrance and began August 18, but Firefox has worked that day. Does not use FF again until today. Today August 22, firefox does not start, shortcut icon changed program not there. Exe in the folder when you click Poster error message says the version of this file is not compatible with the version of Windows, I am running. Exe of Firefox shows created on 20 August. I suspect the update, Windows or FF but lean towards windows, which was spent, who broke things. I noticed that IE 10 updates, updates of .NET framework and the malicious software removal tool have been installed. I tried to restart the computer, has not set. Tried to run as administrator, did not work. I don't want to uninstall FF, at least have to because of all the things I have here, bookmarks, last past passwords, etc..

    Hello

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files (not the profile folder, where the bookmarks are stored) and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    Please report back to see if this helped you!

    Thank you.

  • When installing CD collection national geographic Gets the error, "the version of this file is not compatible with the version of Windows that you are using".

    Original title: the version of this file is not compatible with the version of Windows you are using. Check your computer system information to see if you need a X 86 (32-bit) or X 64 (64-bit) version of the program, and then contact the software publisher.

    I have a large CD collection published by National Geographic. The difficulty lies in the installation of the program that displays the pages. Setup of the program ends. ins.  These Photo CD were produced by mindscape. When you try to contact them, they are based in France, and it is impossible to get support for this product. Is it possible to get the installer on the CD to do its job to provide a way to turn the 'pages '?

    Hello malaglinskom,

    In addition to what Azam offered, you may try the following:

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other software virtualization part 3rd and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    Hope this information helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Running game - this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program

    I'm having the same problem that is described in this topic: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/f15edea1-f88f-492e-bb42-4db2b06fdf05

    My error message is: "this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program and then contact the software publisher. »

    I tried to run the program in question (Castle of the winds) in each mode of compatibility that is on the list and it is giving me this error message every time. Other people have managed to get the program to work, so I don't know, it does not work on Windows 7, but I can't make it work for me.

    Help?

    Hi autohaptic,

    (a) on the computer what Edition\Version of Windows 7 operating system do you use? What type of system? 32-bit or 64-bit

    If you are running Windows 7 64-bit operating system, you can install the 64-bit computer game program.

    (b) on the computer which the castle of the winds game version are you running?

    I want to clarify, if you try to install the program or trying to run.

    Step 1: Put the computer in a clean boot, and then try to run the game

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    You can consider the right version of the game for your computer relocation program.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • try to download the audio book gives the error "the version of this file is not compatible with the version of windows your race."

    frustrated, the overdrive software download player!

    I tried everything I can think of to download this audio book. whenever I try, I get a message error that says "the version of this file is not compatible with the version of windows your race. check the system and see if I need a 32 or 64-bit and contact the software publisher. "or something like that. I downloaded the overdrive media console software, but every time that I try to download an audiobook, it gives this message. I tried to change the settings with the "use an older program with this version of windows' software overdrive console in Control Panel with no luck. Anyone have any suggestions. I need help please!

    Hello

    always check the compatibility of vista programs on the link below

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    If a program is compatible with vista you can try right click on the setup.exe, and then selecting run as administrator

    It is not compatible with vista, you can try running it in a previous operating system mode

    This does not work for all programs

    read the information below

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

    ____________________________________________________________

    and read this information MS, too

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-the-program-compatibility-Wizard

  • The version of this file is not compatible with the version of windows you are runing problem.

    IM facing problem installing some software: the error message is below to:

    The version of this file is not compatible with the version of windows that you are running, check your computer's system information to see whether you need a x 86 version or x 64 of this program and then contact the software publisher

    while trying to change the compatibility to windows 7 option does not appear

    Windows 7 will not be included within the compatibility list, because you are already using Windows 7. Your only option is to contact the Publisher of software (the company that built the program) and get a version that works with your computer type (64 bit or 32 bit, whichever one you have).

  • "This version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program.

    Hello

    I seem to be having problems when you try to install a program on my Windows 7 that allows to launch on my Windows XP and Windows Vista. I used the tool to solve compatibility problems and selected these settings in the CONFIGURATION file, but nothing seems to work the error message I get is as follows:

    "This version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program, and then contact the software publisher. »

    Is it possible to set my computer to allow this program to run successfully? Any solution would be greatly useful.

    Hello Rdforbe,

    The problem is a software that was created for Windows 95, 98, and Windows XP has no way to work correctly with an operating system that didn't even exist when the software was written. However, the error message you get normally means that you have a 32-bit software that you are trying to install on a 64-bit system.

    To find out if your computer is running 32-bit Windows or 64-bit, follow these steps:
    System opened by clicking on the button start , by clicking on the Control Panel, click System.
    Under system, you can view the system type. This will describe if you have 32-bit or 64-bit.

    You can also try compatibility mode.

    If the program is not compatible, then you try to install and run the program in compatibility mode.

    Use the following steps:

    (1) right click on the program

    2) click Properties

    3) click on the Compatibility tab

    (4) select run this program in compatibility mode and select Windows Vista or other operating system, the program has been run successfully.

    Check out the link here: make sure to run older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other software virtualization part 3rd and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Windows Media Player error"the version of this file is not compatible with the version of Windows that you are using"

    Original title: need help with Windows Media Player.

    Whenever I try to start Windows Media Player, in my laptop, I get this message... "the version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. »

    I use Windows 7 (Ultimate) 64-bit. I tried to download WMP 64 bit, but could not download. I have evven I tried microsoft solve this problem, but in vain.

    Please, someone help me out here, with WMP.

    Thank you, in advance.

    This procedure has helped most users facing this problem.

    1. Reboot your system.
    2. Open cmd.exe as an administrator by selecting Start Programs/Accessories.
    3. Right-click on command prompt and choose Run as administrator.
    4. Type in
      Unregmp2.exe /UpdateWMPVersion
    5. Press ENTER.

Maybe you are looking for

  • Missing Bootcamp on the bootstrapper

    In the finder, my bootcamp partition is visible, but if I start the bootstrapper (holding alt / option when starting) the only partition that appears is my mac os. It started to happen after I changed the size of my partition to mac OS and then chang

  • What is my iMac worth?

    How is it going. I'm strongly considering selling my iMac and use this money to build my own system. I'm curious to know how it would be interesting. Here are the specs: -iMac (retina 5K, 27 inches, end of 2014) -4 GHz Intel Core i7 -16 GB 1600 MHz D

  • Skype 7.7 crashes

    Hi im having the same problem and I did all that and it won't work. You can hear my community account has been created this year but I'm on Skype for 2011 and I don't want to quit smoking! Help me to Skype! You're my only hope

  • Get "access is denied." on Vista business after either connect an Apple iPod, an external hard drive or USB through USB (2.0) ports.

    an Apple iPod a disc of external data storage a USB When I connect one of ^ these ports USB in front of my computer the drive letter appears in Windows Explorer, so they are detected, but when I try to access it I always get a message like "H: is not

  • News of connection fails for the new installation of Windows 7

    I just got a Lenovo Thinkcentre this morning and I carefully walked the first windows to connect. I put my password and checked every box because there is no way to see when I put. I put in an indication of password. I continued and continues. After