1 Reply Latest reply on Oct 13, 2005 5:07 PM by glindstrom

    Missing ant class: org.apache.tools.util.FileUtils

    glindstrom Newbie

      I get a failure compiling Duke's bank:

      BUILD FAILED
      java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant/util/FileUtils;

      I am using ant 1.6.5, and this class is missing from its API documentation.

      One oddity: ant -version gives 1.6.0, even though I am sure I have my path set correctly to access version 1.6.5.

      Can anyone help?

      Thanks,
      --Gary

        • 1. Re: Missing ant class: org.apache.tools.util.FileUtils
          glindstrom Newbie

          I found the problem -- I had a system with its own ant 1.6.0 class tree in my class path, which is prefixed to ant's class path in ant.bat.

          Now I get the correct result from ant -version -- the "oddity" I reported should have made this problem obvious! Especially since the ant documents recommends using a null class path ... .

          Back to your regularly scheduled hacking ...
          --Gary