ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: BUILD FAILED: java.lang.NoSuchMethodError:<init>(Ljava/io/File;)V
Date Fri, 19 Sep 2003 10:15:08 GMT
On 19 Sep 2003, mark stephens <> wrote:

> I've switched to Ant 1.6 (build 9/9/2003) in Eclipse.

I don't know anything about the Ant/Eclipse integration, but surely
something must have gone wrong or incomplete here.

> There are no duplicates.

If doesn't have a file-arg
constructor in your ant.jar, the jar is broken.  If it has, there must
be another place with this class somewhere in your classpath (and this
class gets loaded instead of the ant.jar version).

This is what

javap -classpath YOUR-PATH-TO/ant.jar -public

should return

Compiled from
public class extends {
    public static final int DEFLATED;
    public static final int STORED;
    public throws;
    public boolean isSeekable();
    public void setEncoding(java.lang.String);
    public java.lang.String getEncoding();
    public void finish() throws;
    public void closeEntry() throws;
    public void putNextEntry( throws;
    public void setComment(java.lang.String);
    public void setLevel(int);
    public void setMethod(int);
    public void write(byte[], int, int) throws;
    public void write(int) throws;
    public void close() throws;
    public void flush() throws;


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message