ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charitha Kankanamge <chari...@wso2.com>
Subject Re: cannot compile with ant -- cannot find symbol
Date Mon, 04 Aug 2008 06:03:14 GMT
Hi Kamran,
This is due to missing dependancies. You may try with adding dependent 
jars as follows.
<javac debug="on"  destdir="${target}/classes">
            <src path="${base.dir}/src"/>
<classpath>
                <fileset dir="D:\<Your dependent class library>\lib">
                    <include name="*.jar"/>
                </fileset>
  </classpath>

regards
Charitha

http://charithaka.blogspot.com

Kamran Hameed wrote:

>i am trying to compile files in that are placed in packages. I have used the
>proper package statements as well but when i compile with ant it gives
>
>compile:
>    [javac] Compiling 113 source files
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:647: cannot
>find symbol
>    [javac] symbol  : method create(mpjdev.nativ.Group)
>    [javac] location: class mpjdev.nativ.Comm
>    [javac]     return ( (tmpgrp != null) ? (create(tmpgrp)) : (null));
>    [javac]                                  ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:662: cannot
>find symbol
>    [javac] symbol  : constructor Comm(xdev.Device,mpjdev.Group,int)
>    [javac] location: class mpjdev.nativ.Comm
>    [javac]     return new Comm(this.device, ngroup, collctxt);
>    [javac]            ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:669:
>collctxt is not public in mpjdev.Comm; cannot be accessed from outside
>package
>    [javac]                     remoteleader, tag, sendctxt,
>localcomm.collctxt);
>    [javac]                                                           ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:668: cannot
>find symbol
>    [javac] symbol  : constructor
>Comm(xdev.Device,mpjdev.Group,mpjdev.Group,int,int,int,int,int)
>    [javac] location: class mpjdev.nativ.Comm
>    [javac]     return new Comm(this.device, localcomm.group, peergroup,
>localleader,
>    [javac]            ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:698:
>incompatible types
>    [javac] found   : mpjdev.Status
>    [javac] required: mpjdev.nativ.Status
>    [javac]     Status status = device.probe(srcID, tag, recvctxt);
>    [javac]                                 ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:730:
>incompatible types
>    [javac] found   : mpjdev.Status
>    [javac] required: mpjdev.nativ.Status
>    [javac]     Status status = device.iprobe(srcID, tag, recvctxt);
>    [javac]                                  ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:780:
>incompatible types
>    [javac] found   : mpjdev.Request
>    [javac] required: mpjdev.nativ.Request
>    [javac]     Request request = device.irecv(buf, srcID, tag, context,
>status);
>    [javac]                                   ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:845:
>incompatible types
>    [javac] found   : mpjdev.Status
>    [javac] required: mpjdev.nativ.Status
>    [javac]     return status;
>    [javac]            ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:962:
>incompatible types
>    [javac] found   : mpjdev.Request
>    [javac] required: mpjdev.nativ.Request
>    [javac]     return device.isend(buf, group.ids[dest], tag, context);
>    [javac]                        ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:1023:
>incompatible types
>    [javac] found   : mpjdev.Request
>    [javac] required: mpjdev.nativ.Request
>    [javac]     return device.issend(buf, group.ids[dest], tag, context);
>    [javac]                         ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Comm.java:1111:
>incompatible types
>    [javac] found   : mpjdev.nativ.Request
>    [javac] required: mpjdev.Request
>    [javac]       reqs[i] = isend(buf, i, rank + tag + i, false);
>    [javac]                      ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Request.java:142:
>initializeWaitany(mpjdev.nativ.Request[]) in mpjdev.nativ.Request cannot be
>applied to (mpjdev.Request[])
>    [javac]     Waitany w = initializeWaitany(requests);
>    [javac]                 ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Request.java:150:
>incompatible types
>    [javac] found   : mpjdev.Request
>    [javac] required: mpjdev.nativ.Request
>    [javac]       r = MPJDev.dev.peek();
>    [javac]                          ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Request.java:168:
>incompatible types
>    [javac] found   : mpjdev.Status
>    [javac] required: mpjdev.nativ.Status
>    [javac]     Status completedStatus = w.completed.iwait();
>    [javac]                                               ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Request.java:185:
>isNull is not public in mpjdev.Request; cannot be accessed from outside
>package
>    [javac]     requests[completedStatus.index].isNull = true;
>    [javac]                                    ^
>    [javac] /home/kamran/parallel/mpj/src/mpjdev/nativ/Request.java:186:
>incompatible types
>    [javac] found   : mpjdev.nativ.Status
>    [javac] required: mpjdev.Status
>    [javac]     return completedStatus ;
>    [javac]            ^
>    [javac] Note: Some input files use unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 16 errors
>
>BUILD FAILED
>/home/kamran/parallel/mpj/build.xml:83: Compile failed; see the compiler
>error output for details.
>
>Can any one tell
>
>
>
>  
>
>------------------------------------------------------------------------
>
>Internal Virus Database is out-of-date.
>Checked by AVG. 
>Version: 7.5.524 / Virus Database: 270.4.7/1543 - Release Date: 7/9/2008 6:32 PM
>  
>


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


Mime
View raw message