You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David McTavish <dm...@SANDVINE.com> on 2003/01/16 17:26:56 UTC
ant exec and error=5
Can anybody help explain why I am getting a "CreateProcess error=5" when I
attempt to exec the Windows regsvr32.exe to register a dll?
Here is my target:
<target name="compile.init">
<exec executable="regsvr32.exe" dir="lib">
<arg value="/?"/>
</exec>
</target>
Results:
BUILD FAILED
file:M:/dmctavish_main/sw/application/ada/build.xml:146: Execute failed:
java.io.IOException: CreateProcess:
M:\dmctavish_main\sw-tools\vb\bin\regsvr32.exe CSHttpClient.dll error=5
I know that the exec command is finding the regsvr32.exe executable as if I
put a bogus name in, I always get the infamous "error=2". However, I'm not
aware what the error=5 means.
Any info would be greatly appreciated.
thx,
d.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ant exec and error=5
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "David McTavish" <dm...@SANDVINE.com>
To: "'Ant Users List'" <an...@jakarta.apache.org>
Sent: Thursday, January 16, 2003 08:26
Subject: ant exec and error=5
> Can anybody help explain why I am getting a "CreateProcess error=5" when I
> attempt to exec the Windows regsvr32.exe to register a dll?
>
> Here is my target:
> <target name="compile.init">
> <exec executable="regsvr32.exe" dir="lib">
> <arg value="/?"/>
> </exec>
> </target>
>
> Results:
> BUILD FAILED
> file:M:/dmctavish_main/sw/application/ada/build.xml:146: Execute failed:
> java.io.IOException: CreateProcess:
> M:\dmctavish_main\sw-tools\vb\bin\regsvr32.exe CSHttpClient.dll error=5
>
> I know that the exec command is finding the regsvr32.exe executable as if
I
> put a bogus name in, I always get the infamous "error=2". However, I'm not
> aware what the error=5 means.
from WinError.h
// MessageId: ERROR_ACCESS_DENIED
//
// MessageText:
//
// Access is denied.
//
#define ERROR_ACCESS_DENIED 5L
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>