aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes NoSuchMethodError :  FileUtils Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "NoSuchMethodError :  FileUtils" Watch "NoSuchMethodError :  FileUtils" New topic
Author

NoSuchMethodError : FileUtils

Suresh Acharya
Greenhorn

Joined: Sep 14, 2007
Posts: 1
HI All,

Does any body has any idea of the build error below and how to resolve it.

Thanks.


BUILD FAILED
java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils() Lorg/apache/tools/ant/util/FileUtils;
at org.apache.tools.ant.taskdefs.optional.dotnet.ImportTypelib.<clinit>(
ImportTypelib.java:48)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Looks like that for some reason, you need to include the Commons IO library on your classpath.


[My Blog]
All roads lead to JavaRanch
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Christophe Verre:
Looks like that for some reason, you need to include the Commons IO library on your classpath.


Well, in fact it means that he has *the wrong version* of the library in the classpath...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

That's right Ilja, I didn't pay attention to the NoSuchMethodError
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoSuchMethodError : FileUtils