0

I'm trying to add the apache commons jar extensions to my project I copied my jar files in my project root. I also put these same files in my "Referenced Libraries" folder and when I run my app I'm getting the below error message.

To add the jars this is my process I right-click>Properties>Java Build Path>Libraries>Add Jars

My error message Caused by: java.lang.NoClassDefFoundError: org.apache.commons.io.IOUtils

bobhope
  • 113
  • 1
  • 3
  • 10

1 Answers1

0

You are maybe missing a jar, try adding this jar to the classpath by doing just what you did before:

right-click>Properties>Java Build Path>Libraries>Add Jars

Download this JAR: http://central.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar

Guido Celada
  • 2,147
  • 1
  • 18
  • 23
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – jww Oct 03 '14 at 03:42
  • I'm sorry let me rephrase the answer – Guido Celada Oct 03 '14 at 03:45
  • @GuidoCelada Hi I added the above Jar file but in the Java Build Path when I click Libraries and then individually click on each jar file my **source attachment, javadoc location, native library location and are considered (None) and Access Rules has (No Restrictions)** – bobhope Oct 03 '14 at 17:31
  • for the javadoc you can google "javadoc apache commons io" and Right Click the JAR file in Project Explorer -> Properties -> From the left pane choose Javadoc Location -> enter the URL of your jar documentation. – Guido Celada Oct 03 '14 at 23:57