ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sujeet Banerjee \(Ext. 3283\)" <sujeet_baner...@persistent.co.in>
Subject Re: javac task
Date Tue, 22 Feb 2005 14:10:21 GMT
Hello Shigemoto

Yeah, that's a weird problem I faced a lot. You can try the following:
1. add the complete path of aaa.jar and bbb.jar in your environment
CLASSPATH.
2.  Make it as
 <classpath>
       <pathelement path="${lib}"/>
   </classpath>

- Sujeet
----- Original Message ----- 
From: "Shigemoto FUJIKURA" <fujikura@ogis-international.com>
To: <user@ant.apache.org>
Sent: Tuesday, February 22, 2005 5:00 PM
Subject: javac task


> hi all,
>
> im stacking on an error which produced by javac task.
> when i use javac task like this:
>
>   <javac destdir="${classes}" includeantruntime="no">
>     <src path="${src}"/>
>     <classpath>
>       <pathelement path="${lib}/aaa.jar"/>
>       <pathelement path="${lib}/bbb.jar"/>
>     </classpath>
>   </javac>
>
> the following error occurs.
>
> compile:
>   [javac] Compiling 241 source files to /home/classes
>   [javac] /home/src/Test.java:162: cannot access xxx.yyy.Zzz
>   [javac] file xxx/yyy/Zzz.class not found
>   [javac]              output.setMessage(qname);
>   [javac]                      ^
>
> i know this compile error is NOT a classpath issue. because when i
> execute javac by exec task with almost same args, it succeeds.
>
>   <property name="jars" value="${lib}/aaa.jar:${lib}/bbb.jar"/>
>
>   ...
>
>   <exec executable="javac">
>     <arg line="-classpath ${jars} \
>       -sourcepath ${src} \
>       -d ${classes} \
>       ${src}/Test.java"/>
>
> additionally, when i execute javac on command line, it also
> succeeds.
>
>
> does anyone know what is the difference between executing javac
> with javac task and exec task?
>
>
> Regards,
>
> -- 
> sigemoto
>
>
> ---------------------------------------------------------------------
> 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