error: cannot find symbol IOUtils.copy(in, out);
<p>Using Apache ANT to built. Included the commons-io-2.4.jar in classpath.
Compiler shows this error:</p>

<pre><code> error: cannot find symbol
    [javac]         IOUtils.copy(in, out);
</code></pre>

<h2>EDIT - code</h2>

<pre><code>File f1 = new File("c:\\json\\user.json");
 File f2 = new File("c:\\json\\user1.json");

 InputStream in = new FileInputStream(f1);
 OutputStream out = new FileOutputStream(f2, true); // appending output stream

 try {
    IOUtils.copy(in, out);
 }
 finally {
     IOUtils.closeQuietly(in);
     IOUtils.closeQuietly(out);
 }
</code></pre>

<h2>EDIT- Answer</h2>

<p>Did a mistake with the imports.
import org.apache.commons.io.IOUtils; </p>
