java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V

Google Groups | Zhoulai | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Errors with 'ant test'

    Google Groups | 1 year ago | Zhoulai
    java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V

      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.registerTestCase()
    2. Apache Ant + JUnit
      JUnitTestRunner.main
      1. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.registerTestCase(JUnitTestRunner.java:1195)
      2. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:921)
      2 frames