Skip navigation
Master §ix
Currently Being Moderated

Flash CS6 AIR error: CreateWinProcess failed with error 2. The system cannot find the file specified

Feb 22, 2013 10:13 AM

Tags: #air #error #flash #export #swf #flash_cs6

I created an AIR application in Adobe Flash CS6, but when I test, debug or publish it, an error always occured.

 

CreateWinProcess failed with error 2. The system cannot find the file specified.

 

When I clicked OK, Flash suddenly stops responding, so I need to end the process using Task Manager.

 

I created a blank FLA document and tested and published it, everything's fine there. It was exported properly. But when I do it with the AIR app, Flash can't even start exporting the SWF of the AIP app, and instead gave me the error.

 

I speculate that there is something wrong with the Java command line stuff Flash is doing behind the curtain. I tried using ADL myself and get the AIR app working fine.
I also found out that Flash has its own JRE installed, so I don't have to bother the JRE used by my computer.

 

Is there any way to fix this? Thanks in advance. Have a nice day!

 
Replies
  • Currently Being Moderated
    May 15, 2012 1:04 AM   in reply to Master §ix

    Please check this thread

     

    http://forums.adobe.com/message/4387097#4387097

     

    Let me know this will slove your issue.

     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2012 1:54 AM   in reply to Master §ix

    Hi , 

     

    The Flash application is sometimes not able to access the path to the java that you are trying to use. You need to correctly set the windows environment variables by right clicking on My Computer and going to properties.

    Include your Java path in the environmental variable(JAVA_HOME) and save it. The path will be similar to : c:\Program Files (x86)\Java\jdk1.6.0_21\bin.

     

    Let me know if this solves your problem. 

     

    Thanks and regards,

    Sudeshna Sarkar

    Adobe Flash Professional Team.

     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2012 3:19 AM   in reply to Master §ix

    Hi ,

     

    Install JDK. Ideally this shouldn't be required. We are checking the issue at our end.

     

    Thanks and regards,

    Sudeshna Sarkar

    Adobe Flash Professional Team.

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2012 6:41 AM   in reply to Master §ix

    I have the same problem. I am attempting to test an Air 3.2 application I am coding in Flash CS6.

     

    I can test without problems if the targetted platform is Flash Player.

     

    But if I target Air 3.2 then I get the same error Master §ix posted.

     

    "CreateWinProcess failed with error 2. The system cannot find the file specified."

     

    Then I have to use Task Manager to end the process.

     

    I have set the environmental JAVA_HOME variable to my Java JDK path, but the error still remains.

     

    This means I cannot test my Air 3.2 apps within Flash CS6. I have to publish and install every single time. Which is very annoying and time consuming when all I want to do is test functionality of incremental changes to code.

     

    Is there a proper answer to this?

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 5, 2012 2:06 AM   in reply to Daniel777

    Hello,

     

    This is Suhas Yogin from the Adobe Flash Professional team. We are on a bug-hunting course and would like to know if you were able to resolve this issue? If so, how?

     

    If not, could you please give us the following details:

     

    • Machine Configuration?
    • Have you reset your Flash Preferences? If yes, was this issue still reproducible?
    • Could you please upload your FLA’s to a free file sharing site such as Google Docs?

     

    Thanks,

    Suhas Yogin

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 5, 2012 11:07 AM   in reply to Suhas Yogin

    Hi Suhas,

     

    I am sorry to say that the problem has not been resolved. As an alternative arrangement I have to keep exporting standalone Air apps with the Air runtime embedded in order to test my creations.

     

    It doesn't matter  which app I am working on either, if I am CTRL+ENTER testing it, and it is destined for Air (as opposed to Flash) I get the error.

     

    My Machine is WinXP Home SP3, 4GB Ram, Intel Core2 Duo... etc. What else do you need?

     

    Regards,

    Dan

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 28, 2012 8:23 AM   in reply to Suhas Yogin

    Is there any solution for  this case

    I have the same problem

    I have tried the above suggestions but nothing happened

    WinXP Home SP3 system32

    Thanks in advanced

     

    Note: I have both CS5 and CS6 on my PC is that might be the problem??

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 30, 2012 10:02 PM   in reply to Ameen Al Hossani

    Please install the CS6 update :-

    http://www.adobe.com/support/flash/downloads.html

    And let us know if that resolved your issue. Adobe strongly recommends that you install this update.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 1, 2012 2:44 PM   in reply to Jose_Flash_ookken

    I installed  the update, but I'm sorry to say that it did not solve the problem

    The error is still there as described by Master §ix and Daniel777

    CreateWinProcess failed with error 2. The system cannot find the file specified.

    It happens when trying to test, debug, or publish air applications (AIR 2.5 – AIR 3.4 , desktop, android, iOS)

    In this case, I can't use the simulator to test the applications,

    thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 4, 2012 2:30 AM   in reply to Ameen Al Hossani

    Hi,

     

    Could you please let us know whether the following folder "jre" is getting created under the location-

    c:\Program Files (x86)\Common Files/Adobe/Adobe Flash CS6/jre?

     

    We were trying to repro the issue "CreateWinProcess failed with error 2. The system cannot find the file specified.", only when we deleted the jre folder from the above mentioned location.

     

    Thanks!

    Meenakshi

    Flash Pro Engg Team.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 7, 2012 10:03 AM   in reply to meetiwari3

    C:\Program Files\Common Files\Adobe\Adobe Flash CS6\jre

    Yes, I found this folder

    But I didn’t find any Environment Variable of that value. I'm not expert  and I don’t know if it needs a variable or not.

     

    I tried to update the jre folder with jre7, but I got the same error

    Then, I tried to delete the jre from this location and open flash cs6, and I got this error

    Error initializing  Java Runtime Environment . You may need to reinstall flash.

    And I got the previous error too.

     

    Hmm…  now, is it about the java files, Environment Variables or Air Debug Launcher?

     

    Thanks

    Ameen Al Hossani

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 3, 2012 2:39 AM   in reply to Ameen Al Hossani

    Same problem here!

     

    1. Flash CS6
    2. Latest updates installed
    3. Windows XP (Home) Service Pack 3
    4. JDK Installed

     

     

    We need a fix for this!!!

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 21, 2012 5:36 AM   in reply to blogtom

    Anybody fixed this issue yet?

    The error is still alive!

     

    @Adobe When does a new Flash CS6 update arrive?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 20, 2013 8:51 AM   in reply to meetiwari3

    Have the same issue.  Has anyone come up with a solution to this problem. My operating system is Windows xp 32bit, downloaded the newest JDK version, set environment path and have tried everything that has been discussed on this forum page.. Cs5.5 flash worked fine. Please help..

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 21, 2013 12:49 PM   in reply to Stankrug

    I'm still having the issue too!

     

    No word from Adobe  yet on this! Their support hotline didn't help  either....

     
    |
    Mark as:
  • kglad
    72,261 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 22, 2013 6:38 AM   in reply to blogtom

    i encountered this error last night: CreateWinProcess failed with error 2. The system cannot find the file specified.

     

    i resolved the problem by reinstalling flash cs6 pro and updating.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points