On Mon, Dec 15, 2008 at 9:32 AM, Bob <[email protected]> wrote:
> Aha that sheds some light - is it a PATH issue? I use the same user to
> run Continuum as I do to run it from the command line, so it should be
> using the same path:

It's possible, however, it is my understanding that rundll32 is on the
default system path for Windows, and so should be always available to
everyone. However, I'm quite ignorant of Windows, so I could easily be
mistaken. I do know that Runtime.exec() in Java uses a very minimal
environment, not the users environment, and likely won't have custom
changes to the PATH for that user.

> [DEBUG] exec: [rundll32, url.dll,FileProtocolHandler, E:\JavaBuilds
> \Continuum\working-directory\6\XXXXXXXX\target\test-classes
> \TestRunner.swf]
> [DEBUG] commandline: cmd.exe /X /C &quot;rundll32
> url.dll,FileProtocolHandler E:\JavaBuilds\Continuum\working-directory
> \6\XXXXXXXX\target\test-classes\TestRunner.swf&quot;
> [DEBUG] opened server socket
> [DEBUG] [SYSERR]: 'rundll32' is not recognized as an internal or
> external command,

Here's the crux of the problem. It can't find rundll32. I don't know
if the &quot; could be causing the problems or not. Try running it
exactly as it appears after the commandline: , if it fails, try
running it with the &quot; replaced by quotations marks (").

> When I ran it from the command line with the same arguments Continuum
> uses: "-X --batch-mode -Dsnapshot=true", it still works. I wondered if
> "batch-mode" was significant,it doesn't seem to be.

When you run it from the command line, if it works, then you shouldn't
get the 'rundll32' is not recognized error like you do in maven. Does
the commandline: look different as well? The text after the
commandline: statement is what gets passed into Java's Runtime.exec().
I've only ever tested myself on Windows XP, and rundll32 seems to work
fine. I was under the impression that someone had run it in Vista
without problems, but that may not be the case. Is this running on
Vista or Windows Server?

Logan

--~--~---------~--~----~------------~-------~--~----~
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