package org.apache.commons.io does not exist error

后端 未结 3 1726
没有蜡笔的小新
没有蜡笔的小新 2021-02-19 08:06

I am compiling a .java file using ant compiler. I am getting the following errror \"package org.apache.commons.io does not exist error\"

I downloaded the apache Commons

相关标签:
3条回答
  • 2021-02-19 08:38

    I also faced the same issue, but after adding dependency in pom error got removed.

    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.6</version>
    </dependency>
    

    you can also refer URL http://zetcode.com/java/fileutils/

    0 讨论(0)
  • 2021-02-19 08:40

    I was having same issue then realized that the version of commons-io getting picked up was lower than what I need (2.4)....I need to Override the already managed version as below to get the right one picked up:

    <dependency>
         <groupId>commons-io</groupId>
         <artifactId>commons-io</artifactId>
         <version>2.4</version>
     </dependency>
    
    0 讨论(0)
  • 2021-02-19 08:47

    Go to: http://commons.apache.org/proper/commons-io/download_io.cgi Download: commons-io-2.4-bin.zip Unzip and find commons-io-2.4.jar in folder commons-io-2.4

    0 讨论(0)
提交回复
热议问题