N/APosted on - 01/27/2012
I am making an application through Adobe AIR with Adobe Flash CS5. It runs well but when trying to publish the program it gives me an error as posted below. The .exe file is stored or saved in my drive C.
I checked on it but when trying to publish it, I still got the same error.
Help me please.
CreateWinProcess failed with error 2: The system cannot find the file specified.
Error in publishing application made in Adobe AIR
There are few possible explanation to this. So we just jump to the suggestions on how to get it done.
Check to make sure that the files that are being used during the project are placed very far from the root folder where the other project files are present;
The Jar components usually creates a command line and if it exceeds its limit then this error comes.
Go to your windows environment variables by right clicking on my computer and going to properties and there. Include your java path in the environmental variables and save it. The path will be similar to C:Program FilesJavajdk1.6.0_21bin.
There is sometime the computer or the application is not able to access the path to the java that you are trying to use so you have to tell the system that it is placed at that place using these variables.