ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: ant exec and error=5
Date Thu, 16 Jan 2003 17:36:41 GMT

----- Original Message -----
From: "David McTavish" <dmctavish@SANDVINE.com>
To: "'Ant Users List'" <ant-user@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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message