ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Garbuzov <boris.garbu...@borealissoft.com>
Subject Re: calling dos start
Date Fri, 18 May 2001 05:38:11 GMT
I also have this problem. And I had it before ant sometimes in stand-alone
applications saying
Runtime.getRuntime().exec("mydoscommand");
Try it in this simple mode first. But I would be curious to hear from
specialists why java sometimes can not create runtime process. What it depends
on?

---------------



Ivan Novick wrote:

> Hi all,
>
> I would like to write some code in an ant file to run the following command
> on dos
>
> start java ${serverclass}
>
> This was my attempt:
>
> <target name="server">
>       <exec dir="${src}" executable="start">
>            <arg value="java ${serverclass}"/>
>       </exec>
> </target>
>
> The error message I get is:
>
> java.io.IOException: Create process: start "java HelloServer" error=2
>
> Does any one know how to write code to execute the command above?  Thank you
> for any input or ideas.
> Ivan


Mime
View raw message