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

I am compiling a .java file using the ant compiler. I get the following msgstr error message "org.apache.commons.io package does not exist error"

I downloaded the Apache Commons IO binaries and pasted the .jar files into "C: \ Program Files \ Java \ jdk1.7.0_51 \ lib \ missioncontrol \ plugins"

Any help. Do I need to change the classpath of my assembly XML file?

<target name="compile" description="Compile source code"> <mkdir dir="${build.dir}/classes"/> <javac includeantruntime="false" srcdir="src" destdir="${build.dir}/classes" classpathref="classpath" encoding="UTF8" debug="on" deprecation="on"> <include name="**/*.java"/> <exclude name="**/NutchExample.java"/> </javac> <copy todir="${build.dir}/classes/lia/tools"> <fileset dir="src/lia/tools" excludes="**/*.java"/> </copy> </target> 
+6
source share
3 answers

I had the same problem, after which I realized that the version of the public content was lower than what I needed (2.4) .... I need to redefine the already managed version, as shown below, to get the right choice

 <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> </dependency> 
+2
source

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 the commons-io-2.4 folder

0
source

try to add a jar from the outside, here .

0
source

All Articles