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

Reply via email to