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! ![]()
Please check this thread
http://forums.adobe.com/message/4387097#4387097
Let me know this will slove your issue.
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.
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
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:
Thanks,
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
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.
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
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.
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
North America
Europe, Middle East and Africa
Asia Pacific