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>
Answer from puppyDomminatedWorld on Stack OverflowI 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>
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/
The mentioned package/classes are not present in the compiletime classpath. Basically, Java has no idea what you're talking about when you say to import this and that. It can't find them in the classpath.
drop the jars in /WEB-INF/lib folder of the project and this error should disappear.
You can download the jars from here commons-io and commons-fileupload
you can try these steps:
1.Right-click the project name (in the "Projects" window) -> New -> Folder, call it (say) "lib". Now open your file browser, navigate to that folder and drop all the custom libraries that you have.
2.Right-click the project -> Properties -> Libraries -> Compile (tab) -> Add JAR/Folder and add the jar files.
If you use jar file you need to add it libraries folder.
If you use netbeans, then select your project and right click on
libraries folder. It opens up a popup menu. Select Add JAR/Folder -> Select the path where your file is -> click on open button.
Your error will be disappear