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" <[EMAIL PROTECTED]>
To: <[email protected]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]