[HELP] I/o Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

Hi, I'm new developer on the Blackberry platform.

I make the first application, but there is a problem when I wanted to install in the Simulator.

My application has several screen and each take the server data, analyzing the data and displays on the screen.

My problem is any executable thread.

When I'm using the code below, it is fine. My application can work perfectly on a simulator.

public TestingScreen() {
   // Runnable thread = new Runnable(){
   //   public void run() {
    // TODO Auto-generated method stub
        // my code get data from server
        Dialog.alert("Hii");
   //   }
   //};
   //new Thread(run).start();
}

but, if you use floor area or UiApplication.getUiApplication (.invokeLater), I got error "i/o Error: cannot run program"jar": CreateProcess = 2 error, the system cannot find the file specified"

public TestingScreen() {
   Runnable thread = new Runnable(){
      public void run() {
    // TODO Auto-generated method stub
        // my code get data from server
        Dialog.alert("Hii");
      }
   };
   new Thread(run).start();
}

I have the 11 screen and all have executable statement and works perfectly. Can run in the Simulator, can get data from the server. But when I create the new #12 screen (copy paste other on-screen), page couldn't use an executable statement. Each I use Runnable/thread, I got error. But when I remove an executable statement my work normally requires.

I already have Google but I do not get the answer.

Please advice. Thank you very much.

Kind regards.

hrnt, thanks for your answer on this issue. It helped me solve my problem as well.

Just to add, for someone else, I use the 32-bit and changed Java SDK my way to the bin folder where the SDK was installed.

Tags: BlackBerry Developers

Similar Questions

  • Error: Cannot run program "jar": CreateProcess = 2 error

    Hi all

    I create a BlackBerry App... All this worked fine until there are times... Now when I agin tried to run during the packaging of the app has been mentioed below error...

    "Error: cannot run program"jar": CreateProcess = 2 error, the system cannot find the file specified."

    Why it is so? Please help me...

    Best regards.

    You can search for java 7, I had problems with it and re-installed java 6 for bb dev.

  • Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

    Hello

    My apps works very well for the current code, but if I add a new function or class in my eclipse application code indicates the error of

    Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

    I searched the forum and google for this problem, certain solutions are related to java path but myjava path is ok as the current code works very well

    So what problem here? and whats solution for that?


    has got the solution to the problem of its need for .jar files path previously I did not understand why he neede path of pot now his reason is here

    http://supportforums.BlackBerry.com/T5/Java-development/I-O-error-cannot-run-program-quot-jar-quot-C...

  • I/o Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

    I/o Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

    Why is the error, how to fix?

    File jar.exe. For example, I have a copy of it in C:\Program Files (x86)\Java\jdk1.6.0_24\bin

  • error message when removing a program "an installation support file could not be installed, the system cannot find the file specified" _

    Try to delete a file from the Program Neighborhood Agent, so I can load a different version.  When I try to remove the program through the Control Panel, it says "an installation support file could not be installed, the system cannot find the file specified."

    Hello rarif, welcome.

    I recommend that you try and that you use the Windows Installer Cleanup Utility (WICU).

    1. go in:
    http://download.Microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe

    2. download the utility and install it
    3 run the utility from START > all programs > Windows Installer Cleanup...

    4. find the program you want to uninstall, then remove the
    5. next, restart your computer

    Let us know if this helps,

    Thank you! Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot install or run programs due to restrictions of the administrator

    Cannot install or run programs due to restrictions of the administrator when I am the admin

    I tried to download and run several programs on my new labtop hp running on windows 7 and every time that I start to install the program, I get a message that says that the admin has put polocies allowing me to perform the action and I am the only user on the computer and me that the admin I can't find all the parameters of this help please to change me.

    I found a similar ad and tried to set the automatic setting windows installer as it said to do and got the same result

    Hello

    a. how long have you been faced with this problem?
    b. any recent hardware/software changes made on your computer?
    c. you are trying to install applications/programs from your administrator account?

    Right-click on the configuration file and select run as administrator (you can also use the same step to run also installed programs). Now, check if that helps.

    You can also try to enable disable User Account Control (UAC) and check if that helps. After return to status.

    Note: Enable UAC after verification.

    User Account Control (UAC) can help prevent your computer from unauthorized changes. UAC notifies you when changes will be made to your computer that require administrator-level permissions. These types of changes can affect the security of your computer or can affect settings for other people who use the computer. We recommend that you leave UAC to help your computer course.

    Reference: http://windows.microsoft.com/en-US/Windows7/Turn-User-Account-Control-on-or-off

    Also to run a scan for virus/malware online on the computer.
    http://OneCare.live.com/site/en-us/default.htm
    http://www.Microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ad724ae0-e72d-4f54-9ab3-75b8eb148356

    Thanks and greetings
    Umesh P - Microsoft technical support.

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

  • Do not open the video file with the error "the file you download cannot open the default program".

    By double clicking on a file video I now get the following message "the file you download cannot open the default program" while previously he opened the file. This occurred after using Microsoft Fix - it for trial purposes, so what has changed.

    Original title: this message is received when I try to open a file by clicking twice - the file you download cannot open the default program

    Hello

    1. Are you dealing with the issue is with the opening of specific or all video files video files?
    2. What is the name of Microsoft fixit are you referring to?

    Set by default to read video files and verify if works.

    Change the programs that Windows uses by default:

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-which-programs-Windows-uses-by-default

    It will be useful.

  • Error message "an error the system cannot find the file specified" when you use Bitlocker

    Original title: Bitlocker to go not accessible by car usb

    Here's the short of it: I decided to use Bitlocker To Go on my USB drive, and while he was to encrypt the drive I plugged a USB DVD - RW drive (it

    s a netbook) and then I got an error message in the Bitlocker program that says "an error the system cannot find the file specified."  I closed the error message and open the Bitlocker Unlock program, put my password and press on unlock and now it only that sit there and spin and the light flashes on my Batman of Seagate HARD drive as it is accessed.  The internal data of the car do not make the same sound, as he did while he was being... just encryption sounds like there are in an infinite loop.  The disc is good and has no errors, and I scanned with SeaTools.  I have a lot of important data on this drive, and I really don't want to lose anything.  Help!

    Hello 5thgear,

    Thank you for the question!

    I'm sorry to know that have problems you with Bitlocker. I get it right you get an error message "an error the system cannot find the file specified" when you run the bitlocker encryption.

    I need to ask you a question to help you best.

    Were there any changes (hardware or software) to the computer before the show?

    Click on the link below.

    http://blogs.technet.com/b/ASKCORE/archive/2010/08/04/issues-resulting-in-BitLocker-recovery-mode-and-their-resolution.aspx

    Answer to us if you are having problems with bitlocker or any other issue of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • Dynadock V10 - "error cannot find Setup file" INSTALLER ERROR

    Hi I have a toshiba dynadock V10.

    Whenever I try to install the drivers, that it says "error cannot find Setup file. I have downloaded the latest drivers and off my anti virus and cut all the proiceses running and no go. There are a few references to this on the internet, but none has a solution.

    I amn trying to install it on an equium U400 running windows 7.

    Curiously, it loaded on an old dell pc easily!

    I spent hours looking on the net and there is no answer. I have nothing showing in the programs to uninstall.

    Thank you

    > Oddly enough it loaded on an old pc easily!
    Hello

    This means that drivers are ok and that there must be something wrong with the system pre-installed on Equium U400.
    How to proceed?

    It is important that you don't would NOT connect the Dynadock to the laptop before installing the software and drivers was not finished.
    Therefore, you need to install the software first. Then after new reboot connect the Dynadock to portable and installation would end the next steps.

  • Cannot install on XP Pro SP3: "Service Pack 3 Setup error - the system cannot find the file specified."

    I am trying to install SP3 on my XP Pro.  I get a notice on my screen, stating: "Service Pack 3 Setup error - the system cannot find the file specified."  Don't know what I'd do.  Thank you.  Peter glass

    That's good news. I think you also need to analyze of rootkits being on the right side. So, now:

    Search for rootkits with a program SPECIALLY designed to detect and remove the (aswMBR):

    Download this file to your desktop. Double-click the icon to run the program. When the opportunity to download and install the latest Avast definitions do.
    Run a scan. Results in red indicate that this was not a false positive! Do you need to remove the rootkit (including "FixMBR" if necessary).

    And finally, leave your PC on overnight and search for viruses, using this site:
    Once we are convinced that your PC is clean, here are my instructions (just in case where you still cannot run batch of Geek-Tech file, etc.):

    1. download the installation of SP3 and IE8 (beforehand) files. I prefer to keep these (and other useful files) on a USB key, but this is optional. Here are the links for the installation files:

    http://www.Microsoft.com/download/en/details.aspx?ID=24 (for SP3)

    (You can TOTALLY ignore the message "intended for it professionals"!)

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=43 (for IE8)

    (You need to install IE8 AFTER SP3! Trust in me.)

    IMPORTANT NOTE!

    It is VERY important to ensure that Internet Explorer is at the level IE6 before installing SP3. In case you have IE7 or IE8, you must uninstall it / them, using the Control Panel Add / Remove programs. Let us know if you need assistance with this.

    Once again:

    Make sure that IE is IE6 level before installing SP3. You can go directly from IE6 to IE8 after SP3 has been installed.

    2. disconnect Internet. Also unplug all unnecessary devices.

    3. temporarily disable the automatic updates. To do this:

    Start | Control Panel (switch to Classic view if not already selected). Automatic updates

    4 set up a clean boot. The last thing you need is for a program that runs in the background to interfere with these updates! (It happens!) For more information:

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

    (Note that this is the same as setting up a "Diagnostic boot.")

    Reset.

    5 install the SP3. Restart TWICE.

    6 switch to IE8. Restart TWICE.

    (What happens very often is that someone has their software antivirus running as they try to install SP3, which often translates into chaos! "This is why it must be done after installing SP3 and IE).

    7 unscrew the clean boot. (That is, return to the Normal startup).

    8 make sure that firewall Windows is activated (it should already be):

    Start | Control Panel | Security Center

    9 visit Windows Update to download and install only the critical security updates. Restart each time you are prompted.

    10 re - enable automatic updates.

  • During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry. How can I do this?

    Original title: Registery Error Message

    During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry.  How can I do this?

    Hello

    • What were the changes made before the problem occurred?

    I recommend you perform the clean boot.
     
    Configuration of your system in a clean boot state helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.
     
    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135 
     
    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • Audio service does not not after download of Creative, restarts, error 0 x 80070002, the system cannot find the file specified

    Yesterday, I downloaded and installed updated Creative to my its Soundblaster card from Windows Update.  It lead me to a large download of Creative for its console related sound and SW, and things worked fine.  When I restarted this morning, there was a horrible loud hum while Windows was loading, and I made a hard stop.  When I rebooted, the buzz was gone, but the icon in the status bar indicates that the sound was off.  The sound message indicates that the audio service is not running.  I tried to restart the computer several times, but the results were the same.  I tried to restart the audio service of the Task Manager, but got an error message 0 x 80070002, the system cannot find the file specified.  Where should I go from here?

    Hi Jfklinger,

    This problem occurs because some legacy applications use files or components that were developed prior to Windows Vista. The names of these audio components may be different in Windows Vista. If the calling application uses the hard-coded file names, the new files and components could not be found.

    To resolve this problem, use one of the following methods to change the audio settings for a device.

    Method 1: use the order Volume of Windows

    To use the Volume of Windows command to change the audio settings for a device, follow these steps:

    1.right - click on the speaker icon in the notification area, and then click devices recording or reading.
    2. double-click - click the device for which you want to set the parameters. For example, double-click on Microphone.
    3. click on the levels tab.
    4. move the cursor upwards or downwards to set the desired volume level, and then click OK.

    Method 2: use Control Panel

    For control panel allows you to change the audio settings for a device, follow these steps:

    1. click on Start, click Control Panel, click hardware and soundand then click sound.
    2. click on the tab playback or recording .
    3. double click the device for which you want to set the parameters. For example, double-click on Microphone.
    4. click on the levels tab.
    5. move the cursor upwards or downwards to set the desired volume level, and then click OK.

    You may receive an error message when you run an application that uses the recording feature or audio playback in Windows Vista
    http://support.Microsoft.com/kb/930095

    Previous post: the result.

    Bindu S - Microsoft Support

    [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.]

  • Error message: "cannot find this file" and songs seem to disappear from Windows Media Player 11.

    Original title: my songs seem to disappear from windows media player 11

    I make a playlist and some of the songs come with a "cannot find this file" dialog box I click on 'place to open the file' and the song is there but will not play. Help, I'm losing songs at an alarming rate.

    Hi Akledge,

    1. this happens only for songs with a specific file format?

    2. What is the full error message that you receive?

    3. have you made a recent software or hardware changes to the system?

    Method 1:

    You can try to start the Windows Media Player (WMP) Fixit from link and check if it helps:

    Solve the problems of Windows Media Player video and other media or library

    For more information, see the article:

    Error message when you type the name of a file to play with Windows Media Player: "Cannot open file."

    Method 2:

    If the problem persists, you can visit the article to rebuild the WMP library and check if it helps

    You cannot view, add, or delete items in the library of Windows Media Player 11

    Note: Windows Media Player automatically rebuilds the database.

  • Error message when you try to download Windows Defender: "first remove Microsoft Client Protection." Cannot find this file through the Add/Remove, search, including hidden or Win Explorer.

    Original title: trying to download

    WinXP SP3, Security Scan run and d/ld: error message when you try to download Windows Defender: "first remove Microsoft Client Protection." Cannot find this file through the Add/Remove, search, including hidden or Win Explorer. What to do now would be much appreciated.

    Also have a related problem about MS Maliciouws software removal tool. For download, but read in the KB that: in XP, the vacuum cleaner will remove the malware, but doing so may trigger the File Protection Win with damages to my operating system.  the tool will attempt to repair the damage, but to rehabilitate prior to infection, that I need to insert the CD of Win. As my computer came with Windows preinstalled, I do not have a disk and will not take the risk of damage, that I can't fix. Do I not download or not... ? Another solution... ?  I also fear that this tool could settle into the routine Win Update and need guidance on the prevention of this facility, if possible, or what to do if it cannot be prevented.

    It can have nothing to do with any of the foregoing. " I'm relaying only because it occurred during the same mission of update: had msg of error that Win Firewall has not been set as a default, which reset, but found this hidden file when searching for the Protection of the customer: "Win 32/Hackdef' - it was a config with the extension ini file and was deleted by Scan."

    Thanks a lot for any assistance.

    scate 39

    Hello

    ·         You have Microsoft Security Essentials on your computer?

    If you have windows installed on your computer security essentials, then you will not be able to install Windows defender. Windows Security Essentials has antispyware component installed.

    You get the error because you have installed MS Security Essentials, which has its own function to antimalware. You don't need or want to install Windows Defender, too. Leave MS Security Essentials installed and do not turn it off.

    See also:

    You can turn on or turn on the firewall in Windows XP, please see the link below:

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

  • What is causing the error event ' BCM42RLY service failed to start due to the following error: the system cannot find the file specified "Event Id 7000

    What is causing the error event ' BCM42RLY service failed to start due to the following error: the system cannot find the file specified "Event Id 7000

    Hello

    1. Since when are you facing this problem?

    2. What is the number of brand and model of the computer?

    3. have you made changes on the computer recently?

    BCM42RLY is a Broadcom network card driver. I suggest that you uninstall and reinstall the drivers and check if it helps.
    Uninstall or reinstall a device: http://technet.microsoft.com/en-us/library/cc725782.aspx

    Hope the information is useful.

Maybe you are looking for