I am using apache commons IO for copying files and have imported that as
import org.apache.commons.io.FileUtils;
but during compilation of my single class that has a main function (only for testing the functions of commons IO) say the
Error: package org.apache.commons.io.FileUtils doesn’t exist
I have placed both java class file and the package apache file the
same folder.
How can I use the function of apache package in my normal file which I am compiling by command line tools IDE like Eclipse?
You need to add apache commons.jar and all other required jars in classpath.