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
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/
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>
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