PhoneGap: Cannot run program "C:\Program": CreateProcess = 2 error

Hi all

I built my app without problem until now, but now, when I try to build it, I get this error:

build:
     [exec] [INFO]                      Parsing command line options
     [exec] [INFO]                      Parsing bbwp.properties
     [exec] [INFO]                      Validating application archive
     [exec] [INFO]                      Parsing config.xml
     [exec] [INFO]                      Populating application source
     [exec] [INFO]                      Compiling BlackBerry WebWorks applicatio
n
     [exec] I/O Error: Cannot run program "C:\Program": CreateProcess error=2, E
l sistema no puede encontrar el archivo especificado
     [exec] [ERROR]                     RAPC exception occurred

BUILD SUCCESSFUL
Total time: 27 seconds

The Spanish part of the error is labeled "the system cannot find the file specified."

I added in the "path" environment variable JAVA_HOME %

I tried to edit bbwp.properties to change "Program Files (x 86)" to "progra ~ 2" but it fails not before. "

I have updated java a few days ago and I think it is a problem with spaces in the path of "Program Files" (x 86), but I don't know where is the file that contains the path that is the cause of the problem.

I tried with - verbose during construction, but it does not help.

Can you help me?? a solution or trick to solve this problem?

Thank you very much.

Thank you all,.

Java 7 is installed (32-bit), I had, I had a variable JAVA_HOME pointing to the latest version installed and %JAVA_HOME%\bin got in my way, but it failed with all this.

I've solved an "easy" way I downloaded the latest versions of ant, java and the sdk webworks and them reinstalled in c: in a path without spaces. I changed the value of the variable JAVA_HOME and path in the file project.properties pointing to the new and everything worked as before.

Hope this can help someone.

Thank you for your support.

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

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

  • 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

  • I/o Error: Cannot run program "C:\Program": error CreateProcess = 87 using ant

    Hi guys,.

    I'm trying to build my console application using Ant. It is a part of my build.xml

       
    
            
            
                
                
            
        
    
        
            
                
            
            
            
        
    

    When I try to "build Ant" I get this error returned:

    I/o Error: Cannot run program "C:\Program": error CreateProcess = 87, the parameter is incorrect

    referring to this line:

    
    

    I tested the names of directory and environment variables all (the variable

    ${46.jde.home}
    

    too) is set correctly, but the error is still there... How could I solve this problem?

    Thank you very much

    Sometimes, the length of the path give birth this error but I have not seen in a while. I ended up installing most of my OCD: \RIM apps to avoid path issues all together.

  • Cannot run Microsoft Fix It for Program_Install_and_Uninstall error: ' we're sorry, but we encountered an unexpected problem, one or several upload components and can not run...»

    Original title: cannot run Microsoft Fix It to Program_Install_and_Uninstall

    When I run Microsoft Fix It for Program_Install_and_Uninstall, I get "we're sorry, but we encountered an unexpected problem, one or several upload components and cannot run the troubleshooter now...» »

    Hello

    Why you try to run the fix it tool?

    Post to fix any problem with Microsoft tool in Microsoft Fix it Center forums.
    http://social.Microsoft.com/forums/en-us/category/msftsupporttools

  • Norton Internet Security scan cannot run because has encountered an internal error

    Norton Internet Security scan cannot run because it has encountered an internal error.

    Your question would be more services to the customers of Norton or Norton Community Forums.
    They are the 'experts' things re Norton.

    http://community.Norton.com/
    https://support.Norton.com/SP/en/us/home/current/info?INID=us_hho_topnav_customer_care

  • Cannot run the report. Analytics Server Error (1042017): network error

    Hello

    I have installed on Linux ODI.
    I start to extract the data of Essbase to Oracle with Hyperion Essbase Data SQL with ReportScript LKM. But after 4 minutes process is stopped with the error:
    com.hyperion.odi.essbase.ODIEssbaseException: cannot run the report. Error (1042017) analytical server: network error: the client or the server timed out while waiting to receive data by using TCP/IP. Check the network connections. Increase the values NetRetryCount or NetDelay in the ESSBASE. CFG file. Update this file on the client and the server. Restart the client, and then try again.

    But if I extract some lines process worked well.

    I read this forum messages and set NETDELAY = 3600, NETRETRYCOUNT = 1000 in the files:

    /Home/EPM/Hyperion/products/Essbase/EssbaseServer/bin/Essbase.cfg
    /Home/EPM/Hyperion/deployments/WebLogic9/servers/HyperionPlanning/webapps/HyperionPlanning/Web-INF/classes/Essbase.properties
    /Home/EPM/Hyperion/common/EssbaseJavaAPI/9.5.0.0/bin/Essbase.properties
    /Home/EPM/Hyperion/products/biplus/appsinfo/WebAnalysis/EssbaseJAPI/bin/Essbase.properties
    /Home/EPM/Hyperion/products/biplus/bin/EssbaseJAPI/bin/Essbase.properties
    /Home/EPM/Hyperion/products/Essbase/APS/bin/Essbase.properties
    /Home/EPM/Hyperion/products/Essbase/EAS/Server/bin/Essbase.properties
    /Home/EPM/Hyperion/products/Essbase/EssbaseStudio/Server/ess_japihome/bin/Essbase.properties
    /Home/EPM/Hyperion/products/Essbase/EssbaseClient/javaapi/bin/Essbase.properties
    /Home/EPM/Hyperion/products/planning/config/Essbase.properties
    /Home/EPM/Hyperion/products/planning/lib/Essbase.properties

    But the error occurred.

    Help please with this error.

    Well the bug should have been resolved then.
    Your options are to try the V11 essbase japi files, these must be pulled from a facility of V11 or send me an email and I can send you the.
    Or use a different extraction method in the interface.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Cannot run programs or restore Windows - error not able to detect options or environment variables

    original title: HELP!

    My netbook has changed, windows is no longer genuine, I can't run the tasks, restoring, recovering, absolutely nothing, not even download any help whatsoever.  I need help, I don't know if I was in charge by another entity, a virus or what, but I was totally disabled.  I can always get on line and access basic information about my computer.  An error message that comes up often is "not being able to detect options or environment variables.  In my view, that it is a virus that has locked all forms of assistance and recovery.   What can I do?   Help

    also I can't turn on my firewall and my current antivirus says that everything is ok.  It is not the case.  This problem started when a website popped up and said that I had been infected that I have to pay and download their program to save my computer.  This program would go not far, my current antivirus, locking and it kept popping up again and again until finally I ended up with a green background and disabled the system.

    This problem started when a website popped up and said that I had been infected that I have to pay and download their program to save my computer.


    It seems you have been affected and have installed malware now. It is a common program of scareware designed to trick you out if your money
    I suggest that you get better results here:
  • Cannot run programs after updates

    On 17 downloaded and installed updates, Service pack 2 for windows, service pack 2 for Office 2007, update KB967642 for office, 5 a security updates for office, silver lamp, after that, I found that all installed widows games ie. solitair, spiders etc: wouldn't, for game executable error XXX has stopped working. This has happened once before and after contacting the provider of my PC, we finished by performing a restore factory setting which has removed all installed programs. I don't want to do what I've only had the PC since January 2009 and already done 2 reset factory for similar reasons. I also now had a breakdown with an audio editing program that has bad but on the import of a music file, the program closes. I uninstalled all updates except office service Pack 2 and update 967642 KB giving not the option uninstall programs and features which had no effect on the games. I uninstalled the software for the program audio and reinstalled from the CD of the program, but I still have the same problem. I could not perform a restore as there is no restore point before the installation of the update. The factory reset was carried out on May 11, 2009, the date where the full system has been updated. My OS is Vista Home premium Acer Aspire M3201, processor Quad-Core AMD Athlon (TM) 9150e 1.80 GHz. ATI Radeon HD 3200 Graphics onboard, the DD Realtek Audio Manager. Is it possible to restore these items and all the other programs that I've not yet used and can be done? I'm only a user base with no or very little technical knowledge.

    Hello PGSW,
     
    Good to see your reply, I'm sorry to hear that the issue is still unresolved.
     
    I would like to ask you a number of things:
     
    1 > please tell me the name of the system manufacturer.
     
    2 > you get an error when you try to use the windows movie maker or windows media player.
     
    3 > if you do not insert a CD or DVD you are able to use Windows media very good player?
     
    I suggest you to check the sound and pilots display in Device Manager and update with the latest and check.
     
    You can also try to do a scan online virus bygoing to: http://onecare.live.com/site/en-us/default.htm
     
    Once you are on the home page, click on "full service scan" and make a scan of the computer.
     
    Please let me know about the results.

    --------------------------------------------------------------------------------
    Kind regards
    Shaolin Roger Thapa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot run programs that I used to use in windows 7

    I can't install or run LEGO Digital Designer and Kodu Game Lab

    Try compatibility mode:

    http://techingiteasy.WordPress.com/2013/07/08/using-compatibility-mode-in-Windows-8-1/

  • Cannot open programs and files error: windows cannot access the file or the path of the specified unit. you don't have the appropriate permissions to access the item

    Original title: Search programs and files will not let me

    I get no response from the search - when I hit to see more results I request = aa indicating that windows cannot access the file or the path of the specified unit.  you don't have the appropriate permissions to access the item

    Hello

    1. don't you make changes to the computer until the problem occurred?

    2 when was the last time it was working fine?

    3 are you facing this problem only with Web sites or other sites also?

    I suggest you try the steps below and check if it helps

    Step 1:
    Try to start the computer in safe mode with network and check if the same error message, here is the link:

    http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode

    Step 2:
    However, to work around the problem, try the step below:

    a. right click on the program file, select Properties.

    b. on the general tab, at the bottom, you will see listed in the issue of safety: this file came from another computer and might be blocked to help protect this computer.

    c. unlock.

    d. click on apply.
    e. click OK.

    Hope this information is useful.

  • cannot run games... sdl_mixer.dll error message

    I've downloaded on my computer games but they will not open and I get a message sdl_mixer.dll.

    How can I fix this?

    Thank you!

    You can try to reinstall the games you get error sdl_mixer.dll since the program is expected to replace the file.
    If this does not help, check if you have the file on your computer.
    If you can find the file, you can try to re - register the .dll file.
    Click Start, click Run, type the following command:
    Regsvr32 sdl_mixer.dll

    Then try again see if you can open the game.

    Then, run the sfc/scannow to see if she will not replace missing or corrupt file sdl_mixer.dll copy. If this file was provided by Microsoft, the SFC scan should replace the file.

    Log in as administrator account. Click Start, run, type SFC/scannow.
    You may be asked to insert the Windows XP installation disc

    Article number: 310747 - Description of Windows XP and Windows 2003 serere (Sfc.exe) System File Checker
    http://support.Microsoft.com/kb/310747

    I hope this helps.

  • Cannot run back to the top of error msg: "the writer has encountered an error 0x800423F3 transitional.

    No matter how I set the parameters b/u, I get this error msg

    Hi Jvfar,

    ·        Where exactly you are trying to create a backup? It is on a disk or hard drive?

    ·        Do you have any third-party program to backup or any other security software installed on the computer?

    I suggest you to check if the backup and restore service is started on your computer.

    To check, follow these steps:

    a. Click Start, type services.msc (without the quotes) in the search bar and press ENTER.

    Note: If the UAC (User Account Control) window is prompted for permission to continue, please click "continue".

    b. double-click the Volume Shadow Copy Service and switch to the general tab.

    c. change the startup type to automatic, and then click on apply.

    d. Click Start, and then click OK.

    Repeat the steps above for Windows backup service and check if Windows backup service is started and set to automatic. Try later backup.

    Also, you can try to temporarily disable the security software and check if you can create a backup and check if it works very well. Later, re - enable security software after checking.

    You can also access the link below for more information on the main causes and backup solution.

    http://blogs.technet.com/b/filecab/archive/2008/03/12/common-causes-and-solutions-to-backup-system-restore-and-complete-PC-backup-problems-updated.aspx

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

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

Maybe you are looking for