tmaster,
I had been reading the posting you had made w/ the same problem. Unfortunately this
doesn't work for me.
Is it possible that you send me your bat file, maybe I have forgotten to change
something else?
>>> [EMAIL PROTECTED] 07/23/01 10:43AM >>>
Just an idea..... and something I tried before....
Use this line instead. it has the quotes removed.
:runAnt
echo %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home=%ANT_HOME% %ANT_OPTS%
org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
goto end
That made ant work for me.
----- Original Message -----
From: "Amos Lieberman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 9:30 AM
Subject: RE: Win 2000 Install/Exec
> I don't see a start_java command. The most obvious place to put the echo
comamnd seemed to be after :runAnt
>
> This is therefore the code in the bat file:
> :runAnt
> echo %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%"
%ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
> goto end
>
>
> This is what I get in return:
>
> C:\>ant
> C:\jdk1.3.0_02\\bin\java -classpath
"C:\jdk1.3.0_02\\lib\tools.jar";"C:\work\ANT
>
\jant\\lib\parser.jar";"C:\work\ANT\jant\\lib\jaxp.jar";"C:\work\ANT\jant\\l
ib\a
> nt.jar"; -Dant.home="C:\work\ANT\jant\" org.apache.tools.ant.Main
> C:\>
>
> Can you see what is causing the problem?
>
> -Thanks,
>
>
> >>> james
>
> [EMAIL PROTECTED] 07/23/01 09:27AM >>>
> Your bat file is not echo?ing the 'java' command. Parameters for java are
> incorrect
>
>
> Either insert _echo on_ before the java (start_java, or something like
that)
> or remove the 'at' symbol before the java command:
>
> Echo on
> @java incorrect parameters you will NOT see
> java incorrect parameters you will see
>
> -----Original Message-----
> From: Amos Lieberman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 10:23 AM
> To: >
> Subject: Win 2000 Install/Exec
>
> I am a beginenr with Ant, and am experiencing some troubles after
installing
> the software. After installing
> ANT and trying to run it I get the message printed below. Could someone
> tell me what I am doing wrong?
> Thanks for your help.
>
>
> C:\> ant
> Usage: java [-options] class [args...]
> (to execute a class)
> or java -jar [-options] jarfile [args...]
> (to execute a jar file)
>
> where options include:
> -cp -classpath <directories and zip/jar files separated by ;>
> set search path for application classes and resources
> -D<name>=<value>
> set a system property
> -verbose[:class|gc|jni]
> enable verbose output
> -version print product version
> -? -help print this help message
> -X print help on non-standard options
> C:\>
>
>