If FilesUtils cannot be resolved Download--> http://commons.apache.org/proper/commons-io/download_io.cgi How to add it to the project--> https://coderanch.com/t/653801/ide/install-Apache-commons-IO-class import org.apache.commons.io.FileUtils; Done!