this also works for me. but is very impratical put flashplayer on
every flex project.

On Aug 27, 10:23 am, Brian <[email protected]> wrote:
> We've also gotten this error when trying to set the flashplayer
> command via a system variable.  The only work around we found was
> putting the flashplayer executable on the path for the user running
> the build.  We also found that allowHeadlessMode set to false did not
> work and xvfb-run still tried to spawn a process to execute the test
> runner; we were trying to use the xvnc plugin for Hudson and we didn't
> want to use xvfb.  In the end we switched over to xvfb since we
> couldn't turn it off.
>
> On Aug 27, 9:15 am, wlepinski <[email protected]> wrote:
>
>
>
> > <build>
> >                 <plugins>
> >                         <plugin>
> >                                 <groupId>org.sonatype.flexmojos</groupId>
> >                                 <version>3.3.0</version>
> >                                 
> > <artifactId>flexmojos-maven-plugin</artifactId>
> >                                 <extensions>true</extensions>
> >                                 <configuration>
> >                                         <testRunner>
> >                                                 <launcher>
> >                                                         
> > <flashplayerCommand>flashplayer.exe</flashplayerCommand>
> >                                                 </launcher>
> >                                         </testRunner>
> >                                 </configuration>
> >                         </plugin>
> >                 </plugins>
> >         </build>
>
> > i'm getting the same error.
> > =(
>
> > On Aug 27, 9:59 am, Marvin Froeder <[email protected]> wrote:
>
> > > Could you try the following configuration on pom:<testRunner>
> > >   <launcher>
> > >     <flashplayerCommand>yourCommand</flashplayerCommand>
> > >   </launcher>
> > > </testRunner>
>
> > > VELO
>
> > > On Thu, Aug 27, 2009 at 9:52 AM, wlepinski <[email protected]> wrote:
>
> > > > Running the following command
> > > > $ mvn clean install -DflashPlayer.command=c:/work/flashplayer.exe
>
> > > > i'm getting...
>
> > > > [INFO]
> > > > ------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > > ------------------------------------------------------------------------
> > > > [INFO] Failed to launch Flash Player.  Probably java was not able to
> > > > find flashplayer.
> > > >                Make sure flashplayer is available on PATH
> > > >                or use -DflashPlayer.command=${flashplayer executable}
> > > > Read more at:
> > > >https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
>
> > > > CreateProcess error=2, The system cannot find the file specified
> > > > [INFO]
> > > > ------------------------------------------------------------------------
> > > > [INFO] Trace
> > > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > > launch Flash Player.  Pr
> > > > obably java was not able to find flashplayer.
> > > >                Make sure flashplayer is available on PATH
> > > >                or use -DflashPlayer.command=${flashplayer executable}
> > > > Read more at:
> > > >https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
> > > >        at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > > > (DefaultLifecyc
> > > > leExecutor.java:703)
> > > >        at
>
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl
> > > >  e
> > > > (De
> > > > faultLifecycleExecutor.java:540)
> > > >        at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > > > (DefaultLifecycl
> > > > eExecutor.java:519)
> > > >        at
>
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai
> > > >  lure
> > > > s(DefaultLifecycleExecutor.java:371)
> > > >        at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > > > (Default
> > > > LifecycleExecutor.java:332)
> > > >        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > > > (DefaultLifecycleExe
> > > > cutor.java:181)
> > > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > > > 356)
> > > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > > > 137)
> > > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke
> > > > (NativeMethodAccessorImpl.java:39)
> > > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > > (DelegatingMethodAccessorImpl.ja
> > > > va:25)
> > > >        at java.lang.reflect.Method.invoke(Method.java:597)
> > > >        at org.codehaus.classworlds.Launcher.launchEnhanced
> > > > (Launcher.java:315)
> > > >        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > >        at org.codehaus.classworlds.Launcher.mainWithExitCode
> > > > (Launcher.java:430)
> > > >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> > > > launch Flash Player.
> > > >  Probably java was not able to find flashplayer.
> > > >                Make sure flashplayer is available on PATH
> > > >                or use -DflashPlayer.command=${flashplayer executable}
> > > > Read more at:
> > > >https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
> > > >        at org.sonatype.flexmojos.test.FlexUnitMojo.run
> > > > (FlexUnitMojo.java:274)
> > > >        at org.sonatype.flexmojos.test.FlexUnitMojo.execute
> > > > (FlexUnitMojo.java:156)
> > > >        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> > > > (DefaultPluginManager.j
> > > > ava:483)
> > > >        at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > > > (DefaultLifecyc
> > > > leExecutor.java:678)
> > > >        ... 16 more
> > > > Caused by:
> > > > org.sonatype.flexmojos.test.launcher.LaunchFlashPlayerException:
> > > > Failed to laun
> > > > ch Flash Player.
> > > >        at
> > > > org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayer
> > > > (AsVmLauncher.j
> > > > ava:104)
> > > >        at org.sonatype.flexmojos.test.launcher.AsVmLauncher.start
> > > > (AsVmLauncher.java:80)
> > > >        at org.sonatype.flexmojos.test.DefaultTestRunner.run
> > > > (DefaultTestRunner.java:53)
> > > >        at org.sonatype.flexmojos.test.FlexUnitMojo.run
> > > > (FlexUnitMojo.java:262)
> > > >        ... 19 more
> > > > Caused by: java.io.IOException: Cannot run program "FlashPlayer.exe":
> > > > CreateProcess error=
> > > > 2, The system cannot find the file specified
> > > >        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
> > > >        at java.lang.Runtime.exec(Runtime.java:593)
> > > >        at java.lang.Runtime.exec(Runtime.java:466)
> > > >        at
> > > > org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayer
> > > > (AsVmLauncher.j
> > > > ava:100)
> > > >        ... 22 more
> > > > Caused by: java.io.IOException: CreateProcess error=2, The system
> > > > cannot find the file spe
> > > > cified
> > > >        at java.lang.ProcessImpl.create(Native Method)
> > > >        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
> > > >        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
> > > >        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
> > > >        ... 25 more
>
> > > > changing version to 3.2.0 works, the flashplayer open and tests run.
> > > > Anyone can help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to