ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Bessmertnyj" <d...@isd.dp.ua>
Subject Re: unable to find a javac compiler when I invoke ant from cmd script (UPDATE)
Date Wed, 21 Mar 2007 09:14:53 GMT
Thank you, I forgot to add fork="true"


----- Original Message ----- 
From: "Denis Bessmertnyj" <dbes@isd.dp.ua>
To: <user@ant.apache.org>
Sent: Wednesday, March 21, 2007 11:01 AM
Subject: ANT: unable to find a javac compiler when I invoke ant from cmd 
script (UPDATE)


> And I have the next target in my build.xml
>
>    <target name="buildFrameworkTestCase1">
>        <javac srcdir="FrameworkTestCase1"
> destdir="${env.ALL_TESTS_BUILD_DIR}/FrameworkTestCase1"/>
>    </target>
>
>
> ----- Original Message ----- 
> From: "Denis Bessmertnyj" <dbes@isd.dp.ua>
> To: <user@ant.apache.org>
> Sent: Wednesday, March 21, 2007 10:59 AM
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message