Look at the script ant.bat, it does similar things (the classpath in your
script is too short).

Gilles

> -----Original Message-----
> From: Denis Bessmertnyj [mailto:[EMAIL PROTECTED]
> Sent: mercredi 21 mars 2007 9:59
> To: [email protected]
> Subject: Ant: unable to find a javac compiler when I invoke ant from cmd
> script
> 
> Hi,
> 
> I have build.cmd with the next code:
> set
> ANT_CLASSPATH=%JCLASSES_DIR%\lib\ant.jar;%JCLASSES_DIR%\lib\catalina-
> ant.jar;%JCLASSES_DIR%\lib\ant-launcher.jar;
> call java -classpath %ANT_CLASSPATH%;%CLASSPATH%
> org.apache.tools.ant.Main -buildfile %ALL_TESTS_SRC_DIR%\build.xml
> 
> The last command, as you see, invokes ant. And ant abuse as:
> 
> BUILD FAILED
> C:\sw_proj\trunk_vb\nd_src\sqr\tst\build.xml:14: Unable to find a javac
> compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
> 
> But when I directly invoke ant from cmd, there is no any error.
> 
> It's is all ok with my %JAVA_HOME% AND %ANT_HOME% system variables.
> 
> May you help me, please.
> 
> 
> thnx.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to