_flexunit.swf not found when trying to run tests

Intellij: 9.03
Windows7 (64bit)
Java 1.6 (64bit)
Intel i7

  I have a Maven flex project which I am developing within Intellij. I can make the project and run the project successfully from within Intellij. However if I attempt to run any flexunit tests from within the project then Intellij displays an error dialog with the following:

[Window Title]


Application not found


If I check the path that is specified in the error the _flexunit.sw exists and is runnable. In fact, when I run it manually by double clicking on it, then it will connect to the flexunit UI in Intellij and report that the tests passed.

So, just to repeat, the file and path displayed in the error does point to a valid runnable swf file called _flexunit.swf.

I can see no reason why it would not be able to run the swf. Any ideas?


What is your default OS application for running SWF files? I suppose it is some browser. Try to change it to standalone Flash Player (probably debugger version if you'd like to debug tests). If you have standalone Flex SDK installed you may just launch and then close <Flex SDK>\runtimes\player\10\win\FlashPlayer.exe because the latest launched Flash Player makes itself the default one.


Also you may try IDEA 10 EAP because a nice feature is implemented there: you may choose any browser/standalone player to run Flex applications and tests. I suppose you'll not face this problem with IDEA 10.
See http://blogs.jetbrains.com/idea/2010/08/new-flex-run-options/
Download here http://confluence.jetbrains.net/display/IDEADEV/IDEA+X+EAP