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,
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?
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?
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?
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,
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.
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?
Ameen Al Hossani